Graph API how get facebook page members/likes

二次信任 提交于 2019-11-28 05:01:55

With FB 2.6 API you can get total likes with fan_count field.

http://graph.facebook.com/cocacola/?fields=fan_count&access_token={value}

Facebook will not give you a list of users who like a page. You don't need this to create this app. You can get this data by querying publicly available insights data.

This URL will get you the raw data this app uses to create this graph:

https://graph.facebook.com/cocacola/insights/page_fans_country?access_token=XXXXXX

You can get this information with any valid access_token.

https://graph.facebook.com/cocacola/?fields=fan_count&access_token=#######

You can get the facebook page member likes using the field fan_count. But you have to pass page access token rather than the user access_token.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!