I’m using the link https://www.facebook.com/feeds/page.php?format=json&id= to return a JSON object of the newest updates on a Facebook page. I’m only interested in the newest update. Is there a way I can only retrieve the newest one without retrieving the N older ones?
I’m using the link https://www.facebook.com/feeds/page.php?format=json&id= to return a JSON object of the newest updates
Share
You’re better using the Page object on the Graph API to pull this kind of data.
If you want posts just by the page itself, then you want
https://graph.facebook.com/PAGE_ID/posts?limit=1&access_token=ACCESS_TOKEN_HERE
If you want the latest post, either by the page OR a fan, then you want
https://graph.facebook.com/PAGE_ID/feed?limit=1&access_token=ACCESS_TOKEN_HERE