Reputation: 11
I want to read a facebook group feed and set the limit to 100.
My php code:
$config = array();
$config['appId'] = '<myappid>';
$config['secret'] = '<mysecret>';
$config['fileUpload'] = false;
$facebook = new Facebook($config);
$feed = $facebook->api("/<groupid>/feed");
How do I set the limit to 100 ?
Upvotes: 1
Views: 374
Reputation: 218
You can set limit field.Maximum is 100 according to doc. https://developers.facebook.com/docs/graph-api/reference/v2.5/page/feed.
The following example is for your reference.
/feed?limit=100
Upvotes: 1
Reputation: 31479
Setting the limit would be done like this:
$feed = $facebook->api("/<groupid>/feed?limit=100");
Keep in mind that there are access restrictions depending on the type of the group.
See
Upvotes: 0