图形 API 未返回正确的“喜欢”数量并且没有评论

发布于 2024-12-03 04:12:32 字数 775 浏览 4 评论 0原文

一段时间以来我一直在寻找这个问题的答案,但找不到任何答案或提示。我想我的问题一定是一个基本问题,希望有人能告诉我正确的方法。

我有一个使用 XFBML 点赞和评论插件的页面: www.junodownload.com/products/if-this-is-house-i-want-my-money-back-zwei/1802350-02/

直接在页面上查看,我可以看到 10 个“赞”和 1 个评论。

但是在调试模式下使用图形 API 时: graph.facebook.com/?id=http%3A%2F%2Fwww.junodownload.com%2Fproducts%2Fif-this-is-house-i-want-my-money-back-zwei%2F1802350-02%2F 我没有看到任何评论,只有 1 个赞。

使用图形 API 检索评论时(xid 是 url 编码的): https://graph.facebook.com/comments/?ids=http%3A%2F%2Fwww.junodownload.com%2Fproducts%2Fif-this-is-house-i-want-my-money -back-zwei%2F1802350-02%2F 我根本看不到任何数据。

I have been looking for an answer to this problem for some time now and could not find any answer or hint. I guess my problem must be a basic one, and hope someone can show me the right way.

I have a page using the XFBML like and comment plugins:
www.junodownload.com/products/if-this-is-house-i-want-my-money-back-zwei/1802350-02/

Looking directly on the page, I can see 10 "likes" and 1 comment made.

But when using the graph API in debug mode:
graph.facebook.com/?id=http%3A%2F%2Fwww.junodownload.com%2Fproducts%2Fif-this-is-house-i-want-my-money-back-zwei%2F1802350-02%2F
I see no comments and only 1 Like.

When using the graph API to retreive the comments (the xid is url-encoded):
https://graph.facebook.com/comments/?ids=http%3A%2F%2Fwww.junodownload.com%2Fproducts%2Fif-this-is-house-i-want-my-money-back-zwei%2F1802350-02%2F
I see no data at all.

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

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

发布评论

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

评论(1

花想c 2024-12-10 04:12:32

我可以看到三个潜在的原因:

  1. 点赞按钮旁边显示的计数不是点赞的数量。它由点赞、分享、评论,甚至包含要点赞的页面链接的消息组成。
  2. 您仍在使用旧版本的评论框。您可能想尝试使用 href 而不是 xid 或将 migerated=1 添加到 fb:comment 标记。请参阅https://developers.facebook.com/docs/reference/plugins/comments/< /a>.
  3. 您的 Open Graph 标签的 fb:admins 标签错误。在 http://developers.facebook.com/tools/debug 运行调试器。

I can see three potential causes:

  1. The count that is displayed next to the like button is not the number of likes. It consists of likes, shares, comments, and even messages that contain the link of the page to be liked.
  2. You are still using on old version of the comment box. You may want to try using href instead of xid or adding migrated=1 to the fb:comment tag. See https://developers.facebook.com/docs/reference/plugins/comments/.
  3. The fb:admins tag of your Open Graph tags is wrong. Run the debugger at http://developers.facebook.com/tools/debug.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文