如何通过facebook api在我的页面上获得喜欢的总数

时间:2013-11-09 07:15:38

标签: facebook facebook-graph-api

我想显示喜欢我的fb页面的用户数量。我如何从Facebook获取此号码。任何帮助将不胜感激。

2 个答案:

答案 0 :(得分:2)

找到答案:

url:https://graph.facebook.com/your-app-name

结果将是这样的数组:

https://graph.facebook.com/facebook

{
"about": "Facebook's mission is to give people the power to share and make the world more open and connected.",
"category": "Product/service",
"company_overview": "Newsroom: http://newsroom.fb.com\nInvestor Relations: http://investor.fb.com/",
"founded": "February 4, 2004",
"is_published": true,
"talking_about_count": 246554,
"username": "facebook",
"website": "http://www.facebook.com/facebook",
"were_here_count": 0,
"id": "20531316728",
"name": "Facebook",
"link": "http://www.facebook.com/facebook",
"likes": 96358786,
"cover": {
   "cover_id": "10151496277356729",
   "source": "http://sphotos-a.ak.fbcdn.net/hphotos-ak-as2/s720x720/247388_10151496277356729_2043388331_n.jpg",
   "offset_y": 0,
  "offset_x": 0
    }
  }

答案 1 :(得分:1)