Get the latest status update on facebook page

How do I get the latest status update on facebook page in php? Not a user profile, but a page (which you might like)? Documentation is a nightmare. Could not find an answer to this question.

+4
source share
1 answer

Pages are the same as profiles, in terms of access to them, although the schedule. To receive messages on the wall from the page, you use the url https://graph.facebook.com/PAGE_ID/feed .

Adding a limit parameter will only return the last: https://graph.facebook.com/PAGE_ID/feed?limit=1 .

Here is a quick and dirty example of how this will work in PHP:

 try { $feed = $facebook->api('/PAGE_ID/feed?limit=1'); } catch (FacebookApiException $e) { error_log($e); } 
+5
source

All Articles