Question

My application is posting on wall on behalf of the user with user access_token. Once it is posted I get back the post_id which is persisted in DB. An an application I would like to query the post using the post_id to collect some basic insights like comments and likes. I can't get my app to query the data.

I tried stream table but doesn't return data as an app. I get "GraphMethodException" code:100 I checked privacy settings on post but that doesn't include permission for an app I tried GraphAPI /post_id which returns same error as stream table I tried insights table with post_impressions metric with no luck. I couldn't give the post_id so tried removing the user_id part from post_id(xxxx_yyyy where xxxx is the userid)

What kind of permissions do I need to request user to grant my application stream_read permission?

How do I query insights table with the post_id that I have?

Was it helpful?

Solution

You can only read the user wall with an active user access token, and the read_stream permission.

About the insights: maybe with this graph connection?

/[post-id]/insights

Well, it gives me nothing for a valid post id. But i am sure you can only get the insights of pages, not user accounts. See here (about pages, but maybe useful additional info): Unable to access a post's insights for someone else's page

One more reason why it will not work, just popped up in my head: If you go to a facebook page, you have the insights view as admin. Nothing like that on a user profile. So the only thing you can track is how often a link to your app has been clicked after posting it to a user profile. You can easily add tracking information to the link too, so you always know from which profile the click comes.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top