I have an issue that I only have the post IDs of posts in my data repository. Since the Graph API I have to prefix the page ID before the post ID. Since I have no information what page posted this post I have a problem here.
I have my post IDs available but now need to know which post is allowed to get which post ID as prefix.
Therefore I’m looking for a way to give a post ID and receive the page ID.
Any API call that might give me that information actively or just a side-information?
2
Answers
I found this here:
does return this:
Unfortunetly that does not make any sense especially in my case. Since the Graph API does ONLY allow
{page_id}_{post_id}
combinations you need to actually provide the page_id in order to receive the page id by the mentioned above request.I hope somebody has another solution!
You can try using a users access_token to get a set of page_access_tokens – then you can try mapping to the data repository and give them the option of posting to these pages using these access tokens based on the return JSON object data.