Facebook像按钮显示错误像计数 [英] Facebook like button shows wrong like count

查看:102
本文介绍了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 http://www.example.com/some/resource
{
   "id": "123456789",
   "name": "Resource Name",
   "link": "http://www.example.com/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.

http://developers.facebook.com/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像按钮显示错误像计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆