I want to get insights data of a facebook page. I have tried with graph api with this url:
https://graph.facebook.com/149279625121774/insights/?access_token=XXXX
but it gives empty data:
{ "data": [
], "paging": {
"previous": "https://graph.facebook.com/149279625121774/insights/...",
"next": "https://graph.facebook.com/149279625121774/insights/..."
}
}
'149279625121774' is the page id.
Is anybody help me for this.
UPDATED ANSWER:Insights
can be retrieved only as an array. To read Insights
you need
access_token
for the publicly available application_active_users
metricaccess_token
for all Insights
for that appread_insights
permissions for all apps, pages and domains owned by this userFor more details on which insights are available please review the FQL Insights table
Here are my comments:
read_insights
permission./
I found the solution.
You must change the order of the scope parameter:
Try
email,read_insights,manage_pages
Instead of
email,manage_pages,read_insights
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With