Limitation on the number of items returned from Facebook

Asked

Viewed 37 times

0

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

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

Edit:

My current code to retrieve items is:

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

Basically I make a requisition GET in API Facebook informing the fields that I need to be returned via json. The variables $groupId e $accessToken, have the values of the Id of the group that I am trying to back up the information, and the other as its name says is the access token needed to perform the query in the API.

  • Please add more details to your question and, if possible, your current code. This way the community can help you more quickly.

  • Hello Paulo, I updated the question with a little more information and the code I use, I hope to be clearer now :)

  • Review the Facebook API, see if this isn’t the limit of Facebook itself.

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 - Numbers of items that Facebook will return.

  • Hello Matheus, I ended up finding this solution tbm.... but without this "limit", you know if you could return a large number of items?

  • @Guipab you traded the 10 for as many items as you want?

  • Yes yes I did and attended to me the moment..... however and when I want to recover ALL items Good Tips?

  • @Guipab I think the limit is 200-225 posts.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.