Limitation on the number of items returned from Facebook

0

I have an app that retrieves the news feed from a group that I post to.

The problem is that I can only retrieve the last 25 registered items, is there any way to recover more than that?

Edit:

My current code to retrieve the items is:

$response = $fb->get(
    $groupId . '/feed?fields=full_picture, message, picture, link, is_published, from'
    , $accessToken
);

I basically make a GET request on the API of Facebook by entering the fields that I need to be returned via json . The variables $groupId e $accessToken , have the values of the group ID of which I am trying to retrieve the information, and the other as its name says is the access token needed to perform the query in the API .

    
asked by anonymous 12.02.2018 / 17:14

1 answer

0

Hello, try this in your code:

$response = $fb->get(
    $groupId . '/feed?fields&limit=10=full_picture, message, picture, link, is_published, from'
    , $accessToken
);

limit = 10 - Number of items that Facebook will return.

    
13.02.2018 / 03:29