Get permalink to a post published on user's wall

vmx picture vmx · Jul 12, 2012 · Viewed 7.2k times · Source

Using Facebook dialogs, app users can share stories. I wish to be able to construct a permalink to the published story and offer as link to view the post. What we receive in response is the post_id, which alone doesn't look sufficient.

Would it possible to construct a permalink based alone on the post_id, if not, what other approach are possible?

Thanks a ton for your time.

Answer

John McGovern picture John McGovern · Nov 10, 2012

You can constuct a link to the original posts with the post_id in the URL with this pattern:

http://www.facebook.com/7683938373/posts/7938393003 

where the post_id is 7683938373_7938393003. (This is a made up post_id)

Just as a note: You can also access a permalink field from the stream table.

Johnny