facebook - How can I get fan page likes count using graph api? -


how can fan page likes count using graph api? earlier here:

https://graph.facebook.com/fanpage_id/?access_token=access_token

but it's return only:

{    "name": "fanpagename",    "id": "0000000000" } 

you need add fields want now:

https://graph.facebook.com/fanpage_id?access_token=access_token&fields=name,likes 

serach "declarative fields" in changelog: https://developers.facebook.com/docs/apps/changelog#v2_4

edit: since v2.7 of graph api, "likes" has been renamed "fan_count". more information: https://developers.facebook.com/docs/apps/changelog

the new api call:

https://graph.facebook.com/fanpage_id?access_token=access_token&fields=name,likes 

Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -