Domanda

$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!

È stato utile?

Soluzione

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top