Search code examples
facebookfacebook-graph-api

getting all subattachment from facebook api


I use the following facebook request:

https://graph.facebook.com/v2.5/_fb_page_id_/feed?access_token=_access_token_&fields=description,attachments,message&limit=100

to get the feed of facebook api but it only returns max 12 subattachments while the posts include more 12 attached image.

  • the images are not album so I can't use album method.

any idea how to get all the images attached to the posts with the description for it ?


Solution

  • According @CBroe's hint, the solution was to modify the URL like below:

    https://graph.facebook.com/v2.5/YOUR_PAGE_ID_HERE/feed?access_token=YOUR_ACCESS_TOKEN_HERE&fields=description,attachments{subattachments.limit(100)},message&limit=100