質問

$fbApiGetPosts = $facebook->api('/userid/feed?limit=1');

so this is working great to retrieve a list of Facebook page posts...

now what if I wanted to retrieve just one specific post by it's ID number? I'm sure this data is out there somewhere, but I am having a heck of a time searching it up.

thanks!

役に立ちましたか?

解決

If you already have the Post ID, you don't need such complex query. You can query simply for /POST-ID-

$fbApiGetPosts = $facebook->api('/{POST-ID}');

Example

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top