获得Facebook像计数 [英] Getting Facebook Like count

查看:119
本文介绍了获得Facebook像计数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将Facebook Like集成到我的网站。现在我需要得到/列出Facebook的计数,就像我网站的管理面板中一样。有没有办法做到这一点?需要建议。提前谢谢。

解决方案

为了获得喜欢的数量使用Facebook API的任何对象,使用您选择的Facebook API,并执行以下命令:

  https://graph.facebook。 COM /<您的对象ID> / 

您将收到一个JSON对象,您可以从中提取喜欢的数量:

  {
id:567454,
link:http: /www.facebook.com/pages/PHP-Developer/103146756409401,
喜欢:250,
类型:页
}

有关 https://developers.facebook.com/docs/reference/api/



该主题在Facebook上的更直接/更新的链接是



https://开发人员。 facebook.com/docs/reference/api/page/


I have integrated Facebook Like into my website.Now i need to get/list the count of the Facebook like in the Admin panel of my website. Is there any way to get this done?Need suggestions.Thanks in advance.

解决方案

In order to get the number of likes of any object using Facebook API, use a Facebook API of your choice and commands like this:

 https://graph.facebook.com/< your object id>/

You will receive a JSON object and you can extract the number of likes from it:

 {
 "id": "567454",
 "link": "http://www.facebook.com/pages/PHP-Developer/103146756409401",
 "likes": 250,
 "type": "page"
 }

More info on https://developers.facebook.com/docs/reference/api/

The more direct / updated link for this topic on facebook is

https://developers.facebook.com/docs/reference/api/page/

这篇关于获得Facebook像计数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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