$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