【问题标题】:Facebook Open-graph Debugging IssueFacebook 开放图调试问题
【发布时间】: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


【解决方案1】:

我想出了一个解决办法。它很脏,但它可以工作。

背景信息:当我尝试更改主页的网站标题时,它告诉我“您无法更改此冻结页面的标题”等。“冻结”部分显示心理危险信号,但是在主页上更改标题并没有什么大不了的,所以我继续前进。

现在,在试图弄清楚这一点时,我想它可能正在寻找我的一些旧 OG 数据,因为无论这些“冻结”数据是什么。我假设出于某种原因我不能在页面上更改太多我的 OG 数据?

修复:在添加之前在上一个网站版本的 OG 数据中指定的 4 个图像后,它允许我通过调试器更新 OG 数据。现在读起来完全没问题。添加旧的图片网址让我可以在人们分享时更新标题、描述等。

我的猜测是有某种检查来查看是否有太多数据发生了变化并且我以某种方式触发了它???我不太确定他们为什么会这样做,但似乎确实如此。

为了清楚起见,这就是我现在所有的图像标签(底部 4 个甚至不是有效的 url,但它们是我曾经拥有的)。

<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" />
<meta property="og:image" content="http://www.dallianceaccessories.com/wp-content/themes/Core/images/slider-miko.jpg" />
<meta property="og:image" content="http://www.dallianceaccessories.com/wp-content/themes/Core/images/slider-pagan.jpg" />
<meta property="og:image" content="http://www.dallianceaccessories.com/wp-content/themes/Core/images/slider-sugarchain-black.jpg" />
<meta property="og:image" content="http://www.dallianceaccessories.com/wp-content/themes/Core/images/og-logo.jpg" />

我会尝试以某种方式消除这些旧图片网址,或者用新图片填充旧网址,直到我能找到解决此错误的正确方法。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-01-07
    • 2015-07-16
    • 2016-06-28
    • 2016-03-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多