获得Facebook像计数 [英] Getting Facebook Like count
问题描述
为了获得喜欢的数量使用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屋!