Skip to content Skip to sidebar Skip to footer

Retrieve The Number Of Messages Send

In facebook js sdk app development..I need to find the number of facebook messages send from the inbox. The code which I am using is

Solution 1:

Facebook automatically applies paging to all API requests that return lists of items. If you do not specify page size FB will apply it's default size. From your example it looks like 10 items per page. For moving to the next page you should use response.paging.next field - it contains ready to use url generated by FB to access the next page. If you reach the last page response.paging field will be null.

More reading about paging from FB specification


Additionally if you want to adjust page size to e.g. 50 items per page you can add limit=50 to your request. Code will look like:

FB.api('/me/inbox?limit=50', ...

Post a Comment for "Retrieve The Number Of Messages Send"