Facebook Like按钮在网站上不起作用,但FB URL Linter没有报告错误

时间:2012-01-11 18:28:45

标签: javascript facebook-like facebook-opengraph

不知道为什么Facebook这样的按钮无法在此网站上运行:http://allisonchow.com

Screenshot of FB like button error

点击错误的error链接(如上图所示)我收到此错误:

FB error

我通过Facebook URL Linter(https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fallisonchow.com)对其进行了三次检查,并报告没有错误。我已经尝试了HTML5,XFBML以及IFRAME版本的按钮而没有运气。

其他详情:

FB URL linter有时会报告og:urlog:title未“明确提供”的警告:

The og:url property should be explicitly provided, even if a value can 
be inferred from other tags.

The og:title property should be explicitly provided, even if a value can 
be inferred from other tags.

然而,奇怪的是,我的代码中都指定了这两个OpenGraph标记。 FB Linter甚至通过在同一页面上显示进一步确认它:

Screenshot of FB URL Linter

此外,linter偶尔会发出此警告:

The og:locale property should be explicitly provided, even if a 
value can be inferred from other tags.

但是,如果我重新加载linter并再次通过它运行URL,警告将定期出现并消失。啊。

不幸的是,当Like按钮不起作用时,如果Linter没有报告错误,我发现它很难调试!

我必须遗漏一些明显的东西,所以会喜欢一些帮助!

1 个答案:

答案 0 :(得分:0)