gpt4 book ai didi

facebook-like - 是否有标签可以在 Google+ 中指定 Google +1 故事格式,例如 Facebook 的 og-meta?

转载 作者:行者123 更新时间:2023-12-03 09:16:01 26 4
gpt4 key购买 nike

Facebook我们有 Open Graph tags 允许网站管理员指定故事在 Facebook 上的显示方式。
Google +1 是否有类似的东西?按钮,允许网站管理员指定缩略图、描述和标题? Google+似乎忽略了 og-meta tags .

Example of Google's Profile +1 list, versus Facebook's wall

最佳答案

来自 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/

一些重要的位:

+Snippet

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 microdata (recommended)

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>

Open Graph protocol

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="..."/>

Meta "title" and "description" tags

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="..." />

关于facebook-like - 是否有标签可以在 Google+ 中指定 Google +1 故事格式,例如 Facebook 的 og-meta?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6536213/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com