Google+ +1按钮摘要+问题 [英] Google+ +1 Button Snippet+ Problem
问题描述
我已将Google +1按钮集成到一个网站中( http://www2.highpoint.edu )
I have integrated the Google +1 button into a website ( http://www2.highpoint.edu ).
我试图使用schema.org <meta>
标记来提供+ Snippets信息的名称,描述和图像,但这不起作用.
I tried to use schema.org <meta>
tags to provide Name, Description, and Image for the +Snippets information, but it doesn't work.
当我使用+1按钮并尝试将有关该网站的信息发布到Google+时,它会选择不需要的图像.它不会选择我用<meta>
标记设置的图像.
When I use the +1 button and try to post to Google+ about the website, it picks an image that I don't want. And it won't pick the image I have set with the <meta>
tag.
我的问题:
- 如何从schema.org元数据中填充+ Snippet数据?
- 对于具有2个或更多+1按钮的页面,我可以为每个+1按钮使用不同的名称/描述/图像吗?还是页面上的每个+1按钮都必须使用相同的元数据?
编辑
我认为最好使用开放图谱协议而不是schema.org.也就是说,根本不应该使用schema.org. Facebook支持开放图谱协议,因此您可以用1块石头杀死2只鸟.
I think it is best to use Open Graph Protocol instead of schema.org. That is, schema.org shouldn't be used at all. Facebook supports Open Graph Protocol, so you can kill 2 birds with 1 stone this way.
更重要的是,Facebook提供了一个出色的调试工具,该工具可以告诉您为给定URL解析的内容: http://developers.facebook.com/tools/debug
More importantly, Facebook provides a great debugging tool that tells you what exactly is getting parsed for a given URL: http://developers.facebook.com/tools/debug
我仍然不确定在同一页面上有多个+1按钮,而每个+1按钮具有明显不同的元数据.
I am still not sure about having multiple +1 buttons on the same page with each +1 button having distinctly different meta data.
推荐答案
针对问题1:
我检查了您的页面.您似乎拥有正常的元标题和说明. +1按钮应该可以使用,但是+1按钮可能需要一些时间才能提取您所做的更改.
I checked your page. It looks like you have a normal meta title and description. This should work for the +1 button, but it may take some time for the +1 button to pick up the changes you've made.
不过,如果您希望控制图片,则需要使用官方常见问题解答中所述的schema.org标记或打开图形:
If you'd like control of the image, though, you will need to use schema.org markup or open graph as described in the official FAQ: http://code.google.com/apis/+1button/#plus-snippet
第2个问题:
如果您使用的是schema.org标记,则+1按钮将读取最靠近页面源代码顶部的itemscope的内容.
If you are using schema.org markup, the +1 button will read the content for the itemscope nearest the top of the page's source code.
这篇关于Google+ +1按钮摘要+问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!