Reputation: 2246
I'm trying to get the number of Facebook likes using the API for the page of the organization I work for - https://www.facebook.com/giftoflife. (The number is about 150k.)
https://graph.facebook.com/110653755631234/insights/page_fans
simply returns no data (I'm using the correct access token).
What am I doing wrong?
EDIT I need to use the insights API specifically, as I need to get the likes within a specific date range.
Upvotes: 1
Views: 161
Reputation: 73984
Getting the number of likes for a Page is actually a lot easier, you don´t need the insights for that, and only an App Access Token:
https://graph.facebook.com/giftoflife
You only need a User or Page Token for that if the Page is restricted (age/country).
If you want to get access to Insights, make sure you got a Page Access Token with the read_insights
permission. You can debug your Access Token here: https://developers.facebook.com/tools/debug/
Upvotes: 1