新的 xfbml“喜欢”按钮 + CloudFlare 503 错误杀死计数?

发布于 2024-12-28 08:57:12 字数 830 浏览 0 评论 0 原文

最近切换到 XFBML 以使我们的页面更​​加高效。然而,我们注意到,当我们开始使用 fb:like 与旧的 iframe 时,新的 Facebook 点赞不再记录!

想要对此有所了解。 Facebook 调试器没有返回错误代码,因此我们对导致此问题的原因一无所知!

代码参考,一切都检查完毕:

<fb:like href="http://www.example.com/" send="false" layout="button_count" show_faces="false" width="90" font="arial" action="like"></fb:like>

CloudFlare:我确实注意到 CloudFlare 有时会偏转来自 Facebook 调试/linter 的流量,并想知道这是否可能相关?您可以尝试以下示例请求: http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.vancitybuzz.com%2F2012%2F01%2Fwhat-lurks-below-british- columbia%2F

感谢您的帮助!

更新:此问题发生在多种“点赞”方法(HTML5 等)上

Recently switched to XFBML to make our page more efficient. However, we noticed that when we started using fb:like vs. the old iframe new Facebook Likes are no longer recording!

Wanted to get some insight on this. The Facebook debugger is not returning error codes so we're in the dark about what's causing this!

Code reference, everything checks out though:

<fb:like href="http://www.example.com/" send="false" layout="button_count" show_faces="false" width="90" font="arial" action="like"></fb:like>

CloudFlare: I did notice that CloudFlare was sometimes deflecting traffic from the Facebook debug/linter and wanted to know if that could be related? Here's an example request you can try: http://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.vancitybuzz.com%2F2012%2F01%2Fwhat-lurks-below-british-columbia%2F

Thanks for the help!

Update: this issue is occurring on multiple methods for "like" (HTML5, etc.)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

静谧 2025-01-04 08:57:13

我们实际上已经确定了这个问题(与 Facebook 合作),并且我们相信已经找到了适当的解决方案。我们的内部测试和其他客户的报告表明 503 调试器问题不再返回。

如果您发现调试器存在其他问题,请联系 CloudFlare

We have actually identified the issue (worked with Facebook) and we believe a proper fix went out for this. Our internal tests & reports from other customers indicate that the 503 debugger issue is no longer being returned.

If you see other problems with the debugger at all, please contact CloudFlare.

落在眉间の轻吻 2025-01-04 08:57:13

需要一个方法才能解决这个问题,但如果您有相同的症状(CloudFlare、Wordpress 网站、Facebook“点赞”按钮在 xfbml 和 html5 格式下均不起作用),那么我建议您这样做:

  • 联系 CloudFlare 并请求更新所有列入白名单的 IP
  • 删除 CloudFlare 设置以检查浏览器完整性
  • 清除和/或更改所有缓存控制标头
  • 等待一天,以便 CF 服务器有机会进行传播
  • 执行 linter/调试器重置失去计数的“喜欢”: http://developers.facebook.com/tools/debug
  • 添加将您的 Facebook ID 添加到元标记
  • 喜欢您想要“焕发活力”的项目
  • 再等一天,让 Facebook 服务器进行相应的传播和同步

关键是给问题时间,因为 CloudFlare 和 Facebook 都有大量需要同步机制的服务器,并且可能需要赶上的日子。

It took a recipe to figure this one out, but if you have the same symptoms (CloudFlare, Wordpress site, Facebook "Like" button not working in both xfbml and html5 formats) then here is what I recommend:

  • Contact CloudFlare and request an update of all Whitelisted IPs
  • Remove CloudFlare setting to check for browser integrity
  • Clear and/or change all cache-control headers
  • Wait a day so CF servers have a chance to propogate
  • Perform a linter/debugger reset on "likes" that lost count: http://developers.facebook.com/tools/debug
  • Add your Facebook ID to the meta tag
  • Like items you want "rejuvenated"
  • Wait one more day for Facebook servers to propagate and sync accordingly

The key was giving the problem time, since both CloudFlare and Facebook have vast servers that require syncing mechanisms, and may take days to catch up.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文