Facebook API: How to Get Post URL with Post ID Only?

Hi everyone,

I’m looking for help with a Facebook-related issue. I need to extract the URL of a recently created Facebook post, and I already have the post ID.

Does anyone know how I can get the full URL using just the post ID? Any tips, API suggestions, or code examples would be greatly appreciated!

Thanks in advance!

Literally the first result of googling “facebook api page post url”. Even no need to click any links.

If this post helps you to resolve your question, please mark it as a :white_check_mark: Solution.

1 Like

The URL, or permalink, for a Page post is:

https://www.facebook.com/<page_post_id>

So, you simply append the output post ID to this link

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.