I am trying to get feeds from facebook using php-sdk. I want to get the maximum number of feeds for page.
My query is:
$feeds = (new FacebookRequest($fb_token), 'GET',
"/$pageId/feed?fields=likes.summary(1).limit(1),comments.summary(1).limit(1),shares,story,link,with_tags&limit=100&date_format=U&date_format=U"))
->execute()->getGraphObject()->asArray();
All I get is 25 posts back all the time no matter how high is my limit number. I can get less than 25 posts if lets say I set limit to 10, it will bring me back 10. Is my query wrong or I can not read more than 25 posts at a time?
If so, how can I bring next portion of feeds in php when I have next page url? Is there a way to do that through php-sdk?
Thanks.
Aucun commentaire:
Enregistrer un commentaire