是否有标签指定Google+中的Google +1故事格式,例如og-meta for Facebook? [英] Are there tags to specify the Google +1 story format in Google+ like og-meta for Facebook?

查看:65
本文介绍了是否有标签指定Google+中的Google +1故事格式,例如og-meta for Facebook?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Facebook,我们可以使用 Open Graph tags 允许网站管理员指定如何故事显示在Facebook上.

With Facebook we have the Open Graph tags that allow webmasters to specify how the story is displayed on Facebook.

Google +1按钮是否有类似的东西,可以让网站管理员指定缩略图,说明和标题? Google+似乎忽略了og-meta tags.

Is there something similar for the Google +1 button, that allows webmasters to specify the thumbnail image, description and title? Google+ seems to be ignoring the og-meta tags.

推荐答案

Google + 帮助文档中,我们现在有一个官方答案.

From Google+ help docs, we now have an official answer.

Google使用 schema.org 微数据在搜索(和Google+)中生成丰富的摘要.这两个链接中有很多关于schema.org及其与Facebook OpenGraph的关系的文章:

Google uses schema.org microdata to generate rich snippets in search (and in Google+). There's a lot written about schema.org and how it relates to Facebook OpenGraph in these two links:

请参阅: http://www.google.com/support/webmasters/bin/answer.py?answer = 1211158 请参阅: https://developers.google.com/+/plugins/+1button/

一些重要的地方:

+代码段

为页面+1之后,用户可以选择将页面共享到 通过显示的共享气泡来访问Google+.此分享泡沫(以及 以及产生的Google+活动信息)包括预览,或者 + Snippet ,其中包含页面标题,页面简短说明和缩略图.这些数据是从 目标URL的内容以以下四种方式之一列出,顺序为 优先级:

After +1'ing a page, the user is given the option to share the page to Google+ via a displayed Share bubble. This share bubble (along with the resulting Google+ activity post) includes a preview, or +Snippet, that contains the page title, a brief description of the page, and a thumbnail image. These pieces of data are extracted from the target URL's content in one of four ways, listed in order of precedence:

Schema.org微数据(推荐)

如果页面使用 schema.org 微数据进行注释,则+ Snippet 将使用在上找到的nameimagedescription属性 任何schema.org类型.

If the page is annotated with schema.org microdata, the +Snippet will use the name, image, and description properties found on any schema.org type.

<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>

开放图谱协议

如果页面包含标题,图像和 说明,然后将它们用于+ Snippet.

If the page contains Open Graph properties for the title, image, and description, then they will be used for the +Snippet.

<meta property="og:title" content="..."/>
<meta property="og:image" content="..."/>
<meta property="og:description" content="..."/>

元标题"和描述"标签

如果页面的元素包含和 标签,+ Snippet将使用其 标题和说明的内容属性.为了 缩略图,共享框将尝试找到合适的缩略图 页面上的图片.

If the page's element contains and tags, the +Snippet will use their content attributes for the title and description, respectively. For the thumbnail image, the sharebox will attempt to find a suitable image on the page.

<meta name="title" content="..." />
<meta name="description" content="..." />

这篇关于是否有标签指定Google+中的Google +1故事格式,例如og-meta for Facebook?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆