0

I want to get all the photos of the user who gave permission to the app. Currently, I tried single and batch request of Graph API but it always paginates the results. Is there a seamless way to get all the objects without following pages?

ps: I'm using PHP-SDK so answering in php is the money :)

user862530
  • 89
  • 1
  • 5
  • Have you tried setting the limit parameter? – CBroe Jun 05 '12 at 23:01
  • Yes, and no matter how big number you give, it limits to some number less then what you set so it's not reliable, you can't do limit=1000000. I can't see in the documentation but via Graph API Explorer, you can verify. Related post is here: http://stackoverflow.com/questions/10108811/what-is-the-maximum-value-for-limit-when-using-the-facebook-graph-api – user862530 Jun 06 '12 at 19:57

1 Answers1

-1

I found out that giving limit=0 is solving the problem. It still generates paging object but they return empty data set. So, limit=0 returns the whole dataset in one shot.

user862530
  • 89
  • 1
  • 5