0

I tried accessing the facebook inbox using the graph API's https://graph.facebook.com/me/inbox?limit=0&access_token=<extended_access_token> This returns few recent messages of the inbox without access to previous messages. There is no paging for inbox. Also, I couldn't find any documentation related to this. Any help would be appreciated.

Is the API designed to be this way?

Vignesh
  • 1,130
  • 2
  • 12
  • 19
  • When using the [Graph API Explorer](https://developers.facebook.com/tools/explorer) i can see all of my inbox messages. The API should work the same way. – Lix Jan 15 '12 at 23:12
  • I added limit=0. It returns some more messages, but not the whole inbox – Vignesh Jan 15 '12 at 23:19

2 Answers2

3

Try using the until parameter for pagination of your inbox.

/me/threads?until=2011-05-01

The new inbox is now called threads rather than inbox. See https://developers.facebook.com/docs/reference/api/thread/ (yes in the Graph API Explorer it is plural rather than what the documentation shows as singular)

DMCS
  • 31,720
  • 14
  • 71
  • 104
  • On the docs.. """The user must be a tester, developer, or admin of the app making the request.""". :(... is not very useful. – Andrés Quiroga Aug 23 '15 at 17:10
  • Not very useful for what exactly? Facebook says: "This endpoint is only accessible for users that are developers of the app making the request.". This endpoint achieves this goal. – DMCS Apr 19 '16 at 20:44
1

You can set any limit you want by adding ?limit=Amount on the request.

Example:

FB.api('/me/threads/?limit=50', function(response){ 
   console.log(response);
});
Stephani Bishop
  • 1,261
  • 1
  • 13
  • 20