Reputation: 11
I am trying to retrieve metrics post_impressions_unique
, post_consumptions
or anything started with a post
but Facebook always return empty array for me.
Anyone know what is the problem here?
Upvotes: 1
Views: 463
Reputation: 8846
Make sure you pass in the entire object ID of the post. It will be of the format pageid_postid (eg. 24379523495_8924592457245) and you need to quote it in single quotes - otherwise you'll get an error about an unexpected underscore.
Upvotes: 0
Reputation: 43816
As well as needing the read_insights permission, this information is only available for posts made by your page, so check you're actually checking the right posts
Upvotes: 0
Reputation: 8819
Are you sure you have the right permissions?
You need read_insight permissions to view post impressions using fql or the graph api.
Here is more information Facebook Developer Guide
Upvotes: 2