博客文章之类按钮的元数据失败
我正在公司网站( www.atlas-games.com ,CLASSIC Blogger 的博客 http://blog.atlas-games.com ...无法使用小部件)。不幸的是,元数据没有通过,所以在 Facebook 中它看起来像:
Michelle Nephew 喜欢一个链接。
Atlas Games:绘制想象的新领域 <--网站名称,而不是帖子标题
该项目链接在指向单个帖子的“链接”和“Atlas Games ...”上正常工作,但它使用通用文本而不是单个帖子帖子的标题、我为 Facebook 指定的网站名称以及图像。
尽管我在页面标题中指定了 URL、标题和图像,但对象调试器会出现推断属性错误。出于某种原因,Facebook 似乎找不到元数据。请参阅此处的报告: http:// /developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fblog.atlas-games.com%2F
我在此处发布代码时遇到问题... 查看源代码, 尽管,您将在标题中看到元属性标记,并在帖子的页脚代码中看到 iframe(现已注释掉)。
这是几个月来我第三次花费数小时试图让它发挥作用,但没有成功,所以这不是一个暂时的问题。有什么建议吗?
I'm integrating a Like button in the individual blog posts on my company's website ( www.atlas-games.com , blog by CLASSIC Blogger at http://blog.atlas-games.com ... can't use a widget). Unfortunately the metadata isn't passing through, so in Facebook it looks like:
Michelle Nephew likes a link.
Atlas Games: Charting New Realms of Imagination <--website's name, not post title
The item links work correctly on "link" and "Atlas Games ..." directing to the individual post, but it's using generic text rather than the individual post's title, the site name I specified for Facebook, and the image.
Object Debugger comes up with Inferred Property errors for URL, Title, and Image, though I specify them in the header of my page. For some reason Facebook just isn't finding the metadata, seems like. See the report here:
http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fblog.atlas-games.com%2F
I'm having trouble posting my code here ... View Source, though, and you'll see the Meta Property tags in the header and the iframe in the post's footer code (commented out right now).
This is the third time over the course of several months that I've spent hours trying to get this to work, with no luck, so it's not a temporary issue. Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
HTML 的结构似乎可能是问题所在,因为它可能会阻止 Facebook 找到 Open Graph 标签。
修复这些验证错误可能允许解析标签:
http://validator.w3.org/check?uri=http%3A%2F%2Fblog.atlas-games.com%2F&charset=%28detect+automatically%29&doctype=Inline&group =0
此外,OG 标签中还有一些模板变量没有被值替换:
It seems like the structure of the HTML might be the issue as it could be stopping Facebook finding the Open Graph tags.
Fixing these validation errors might allow the tags to be parsed:
http://validator.w3.org/check?uri=http%3A%2F%2Fblog.atlas-games.com%2F&charset=%28detect+automatically%29&doctype=Inline&group=0
Also there are some template variables in the OG tags which aren't being replaced with values:
我的博客也有同样的问题!我什至无法直接从 facebook 开发人员将 facebook like 按钮的 html 插入到我的博客中,我的博主博客告诉我该 html 是错误的。我认为这与博主是谷歌博客以及谷歌现在拥有谷歌+有关。我注意到我所有的问题都是在 google+ 出现时开始的,我认为 google 可能搞砸了 google 网站上类似 facebook 的按钮,通过“在 google+ 上分享”获得垄断。
I have the same problem on my blog! And I can't even insert html for the facebook like button directly from facebook developers, into my blog, my blogger blog tells me that the html is erred. I think it has something to do with blogger being a google blog and google now having google+. I noticed all my problems began when google+ came out, I think google is possibly screwing up the facebook like buttons on google sites, to gain monopoly through "share on google+" .