How to get Facebook fans count using http request in API 2.8
— I test these requests but not working
This return an array but no Fans Count
https://graph.facebook.com/v2.8/{APP_ID}?access_token={ACCESS_TOKEN}&edges=fan_count
Return
{
"category": "Entertainment",
"link": {APP LINK},
"name": {NAME},
"id": {ID}
}
— This throw an error array
https://graph.facebook.com/v2.8/{APP_ID}?access_token={ACCESS_TOKEN}&fields=likes
Return
{
"error": {
"message": "(#100) Tried accessing nonexisting field (likes) on node type (Application)",
"type": "OAuthException",
"code": 100,
"fbtrace_id": "FlkGoTOJ403"
}
}
2
Answers
Use {PAGE_NAME} instead of {APP_ID}
Thanks for luschn
This is the correct one:
Not sure why you would use an App for this, Fans are for Pages.