Facebook像按钮显示错误像计数

编程入门 行业动态 更新时间:2024-10-28 08:17:49
本文介绍了Facebook像按钮显示错误像计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我们希望使用Facebook像计数一样的基于图表。通过Facebook的Graph API获得资源的数量很容易。

We want to use the Facebook like count for a like-based chart. It's quite easy to get the like count of a resource via Facebook's Graph API.

$ curl www.example/some/resource { "id": "123456789", "name": "Resource Name", "link": "www.example/some/resourceL", "likes": 26 }

我遇到的问题是,Like按钮显示的数量比我从Graph API获得的数量多得多。我们网站上的类似按钮显示了多达100多个喜欢。这似乎是正确的行为:

The problem I have is that the Like button shows a much bigger number of likes than what I get from the Graph API. The like button on our web site shows a number of 100+ "likes". This seems to be correct behavior:

我的Like按钮上显示的数字是多少?

What makes up the number shown on my Like button?

显示的数字是:

此URL的喜欢次数

该网址的份数(包括复制/粘贴回到Facebook的链接)

The number of shares of this URL (this includes copy/pasting a link back to Facebook)

Facebook上有关此网址的故事的喜好和评论数量

The number of likes and comments on stories on Facebook about this URL

包含此URL作为附件的收件箱邮件数量。

The number of inbox messages containing this URL as an attachment.

developers.facebook/docs/reference/plugins/like/

我们只想在按钮上显示真正的计数。没有其他的。在按钮上显示另一个数字会混淆我们的用户。有没有办法实现?

We'd like to show only the real like count on the button. Nothing else. Showing another number on the button would confuse our users. Is there a way to achieve that?

推荐答案

我不认为现在有任何干净的做法。但是您可以使用旧的休息api的 getstats 方法来获取统计信息,做一点解析并显示。 请注意,链接中的示例现在不起作用,您需要提供一个access_token,它将每600秒限制600个请求。

i dont think there is any neat way to do it now. But you can use old rest api's getstats method to get the statistics, do little parsing and show it. note that the example in the link does not work now, you need to provide an access_token which limits you to 600 requests per 600 seconds.

更多推荐

Facebook像按钮显示错误像计数

本文发布于:2023-10-25 03:24:08,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1525781.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:按钮   错误   Facebook

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!