Вопрос

$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