可分享 post url 来自 Facebook 图 api

Shareable post url from facebook graph api

我正在构建一个从 facebook 图 api 中获取数据的应用程序,如下所示:

https://graph.facebook.com/USER_ID/posts?fields=id,from,message,message_tags,story,story_tags,link,source,name,caption,description,type,status_type,object_id,created_time,full_picture&access_token=ACCESS_TOKEN

如何获得可以共享的 url 到 post?

link 仅适用于共享内容

id returns USERID_POSTID

手动构建以下 url 可以,但不能共享:

https://www.facebook.com/USERID_POSTID

分享需要以下格式:

https://www.facebook.com/USER_ID/posts/POSTID

是否可以直接从 Feed 中获取正确格式的 post url,或者我是否必须拆分 id 并构建url 手动?

有一个图表 api 变量 permalink_url returns 完整 post url。