missing permissions when using parent_id to get orignal post data Facebook graph api

83 Views Asked by At

When sending request using parent_id of a shared post to get original post i am getting status code 400 if the post shared are from other pages but works fine with self shares. Is the problem with my access token, if so how can i resolve it.

I am using the following api call:

https://graph.facebook.com/v11.0/<parent_id>/?fields=from&access_token=token

This gets the page_id ,name and post_id as they are my required information This only works if the page is sharing its own posts otherwise following response:

{
"error": {
    "message": "(#100) Missing permissions",
    "type": "OAuthException",
    "code": 100,
    "fbtrace_id": "AEVxnYgIlQq8Dck1n8TFgK3"
         }
}
1

There are 1 best solutions below

5
CBroe On

You would need the Page Public Content Access feature approved for your app, to be able to read posts by pages you don't have admin access to.

Only you are probably rather unlikely to get it approved, unless your use case matches the single allowed usage they mention there:

Allowed Usage

  • Provide competitive benchmark analysis.