【发布时间】:2012-08-08 22:42:59
【问题描述】:
我在 Facebook OG 调试器中遇到了从未见过的关闭错误。
调试器:https://developers.facebook.com/tools/debug
我正在调试的网址:http://www.dallianceaccessories.com/
我的 FB/OG 元标签:
<meta property="og:title" content="Dalliance Accessories" />
<meta property="og:description" content="Dalliance Accessories is proud to release our new collection with the launch of Dalliance 2.0! Drawing inspiration from all over the world, we are excited to present our new pieces featuring bold stones, neon chord, collars, bracelets and natural stone charged pieces. Striving for a eclectic take on accessories and accessorizing for an instant love affair!" />
<meta property="og:url" content="http://www.dallianceaccessories.com/" />
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Dalliance Accessories" />
<meta property="og:image" content="http://www.dallianceaccessories.com/skin/frontend/default/blanco/images/dalliance-logo.png">
<meta property="og:image" content="http://www.dallianceaccessories.com/skin/frontend/default/blanco/images/dalliance-screenshot.jpg">
我得到的错误:
解析器不匹配的元数据:此元数据的解析器结果与输入不匹配 元数据。这可能是由于数据以一种意想不到的方式排序造成的,多个 为仅期望单个值的属性提供值,或为 给定的属性不匹配。以下是在 解析结果:'og:image:url'
我不明白。我到处寻找答案,但没有任何解决方案有效。最后没有多余的空格(一个建议的解决方案),我已经手动输入了所有内容,因此也没有不可见的字符。
这个问题似乎只是我把图片放进去的。太随意了。我在网站的最后一个版本上的图像很好。有人有什么想法吗?
更新:所以这只是主页上的一个问题,我仍然无法弄清楚原因。我在其他任何地方都没有看到这个错误。 (例如,当我调试http://www.dallianceaccessories.com/necklaces.html)
【问题讨论】:
-
它是否会因为 og:image 标签上缺少右斜线而感到困惑?我似乎记得 FB 对语法很严格。
-
@BrandonGano - 好眼力。我添加了结束标签,但不幸的是,这并没有解决问题。
-
@GilBirman - 我回复说我已经尝试过了,而且 facebook 支持多张图片,但他们删除了他们的帖子。 facebook OG 规范支持多个图像,我可以在大量网站(例如 pixlmix.com)上正常使用它们而没有问题——所以这不是问题。
-
另外,@GilBirman...我在所有其他页面上都使用了 2 张图片,它仍然可以正常工作。主页有些不同(参见:dallianceaccessories.com),我不知道是什么导致了这种情况。
-
我知道 2 个图像标签是允许的,但是这在过去被报告为一个错误(据说已修复)。所以,我认为值得一试。
标签: html facebook facebook-graph-api facebook-opengraph