tex*_*ex5 29 facebook-like google-plus-one og-meta schema.org
随着Facebook我们有Open Graph tags允许网站管理员指定的故事是如何显示在Facebook上.
是否有类似的Google +1按钮,允许网站管理员指定缩略图,描述和标题?Google+似乎无视了og-meta tags.

tex*_*ex5 44
从Google+帮助文档中,我们现在有了正式答案.
Google使用schema.org微数据在搜索(以及Google+)中生成丰富的代码段.有很多关于schema.org的文章以及它与Facebook OpenGraph在这两个链接中的关系:
请参阅:http ://www.google.com/support/webmasters/bin/answer.py?answer = 1211158请参阅:https://developers.google.com/+/plugins/+1button/
一些重要的部分:
+片段
在+ 1'页面后,用户可以选择通过显示的共享气泡将该页面分享给Google+ .此共享通知(以及生成的Google+活动帖子)包括预览或+代码段,其中包含页面标题,页面的简要说明和缩略图图像.这些数据是以四种方式之一从目标URL的内容中提取的,按优先顺序列出:
Schema.org微数据(推荐)
如果页面与注释schema.org微数据,+摘要将使用
name,image以及description在任何schema.org类型中找到的属性.
<body itemscope itemtype="http://schema.org/Product">
<h1 itemprop="name">Shiny Trinket</h1>
<img itemprop="image" src="image-url"></img>
<p itemprop="description">Shiny trinkets are shiny.</p>
</body>
Run Code Online (Sandbox Code Playgroud)
开放图谱协议
如果页面包含标题,图像和描述的Open Graph属性,则它们将用于+ Snippet.
<meta property="og:title" content="..."/>
<meta property="og:image" content="..."/>
<meta property="og:description" content="..."/>
Run Code Online (Sandbox Code Playgroud)
元"标题"和"描述"标签
如果页面的元素包含和标记,则+ Snippet将分别使用其内容属性作为标题和描述.对于缩略图图像,共享框将尝试在页面上查找合适的图像.
<meta name="title" content="..." />
<meta name="description" content="..." />
Run Code Online (Sandbox Code Playgroud)
sev*_*rin 12
如果我分享一个链接到我们在Google+中的web应用(restorm.com),那么标题,描述和图像从各自采取的og:标签(og:title,og:description,og:image).
这些标签
<title>One Shot Orchestra • Electronic • Music, Concerts & More • restorm.com</title>
<link href="https://restorm.com/favicon.ico?116a158" rel="shortcut icon" />
<meta name="description" content="Listen to music of One Shot Orchestra for free and browse the Artist's news, events, videos, pictures, shop, booking & press Infos, live footage & much more on restorm." />
<meta property="og:title" content="One Shot Orchestra" />
<meta property="og:url" content="https://one-shot-orchestra.restorm.com/" />
<meta property="og:type" content="band" />
<meta property="og:description" content="Bangin´ Live Electro aus Bern-Kreuzberg" />
<meta property="og:site_name" content="restorm.com" />
<meta property="fb:app_id" content="127577323959237" />
<meta property="og:language" content="en" />
<meta property="og:image" content="https://assets3.restorm.com/resources/images/40/40b17a53aa9785fa89c15b06b9fcfd72_643969.jpeg?116a158" />
<meta property="og:video" content="https://one-shot-orchestra.restorm.com/minipage/minipage.swf?applicationSettingsURL=https%3A%2F%2Fone-shot-orchestra.restorm.com%2Fminipage%2Fsettings.xml&auto=true" />
<meta property="og:video:width" content="300" />
<meta property="og:video:height" content="200" />
<meta property="og:video:type" content="application/x-shockwave-flash" />
Run Code Online (Sandbox Code Playgroud)
最终像这样分享

因此标题和描述绝对取自og:title和og:description,而不是来自标题和描述元标记......
| 归档时间: |
|
| 查看次数: |
21555 次 |
| 最近记录: |