How do I use paging in the Facebook iOS Graph API?

I am going to get user groups for an application. I am currently in a group of 10,000 members and this is not uncommon. I want to post all my queries to user groups. I am currently using

  [FBRequestConnection startWithGraphPath:[NSString stringWithFormat:@"/%@/members?limit=10", @123456789]
                                 parameters:nil
                                 HTTPMethod:@"GET"
                          completionHandler:^(FBRequestConnection *connection, id result, NSError *error
                                              ) {
                                 ...
                                 // set my "next" url here
                          }];

      

Which works exactly as we would like. I get the number x of groups and I get my "next" url.

The problem is that the "next" url already has " https://graph.facebook.com/v2.0/ " in front of the url. The current request I am using already has this URL snippet for me. [FBRequestConnection startWithGraphPath:...

... Parsing the URL itself looks like a flaking operation, as the version can change and the group ID will be dynamic. I would like to use one [FBRequestConnection

and reuse this callback to be passed for this method.

Is there a way to get what I would like from this? Thank!!

+3
ios facebook facebook-graph-api paging facebook-ios-sdk


source to share


No one has answered this question yet

Check out similar questions:

1665
How can I get the UITextField to move upward when there is a keyboard - when starting editing?
1571
How does Facebook disable built-in developer tools?
958
How do I change the name of an iOS app?
361
Facebook Graph API v2.0 + - / me / friends returns empty space or only friends who are also using my app
65
What's the Facebook API limit?
five
Add / Invite Users to Facebook Group Using Facebook Graph API
4
Facebook SDK collects user and friend information
2
How to get group feed with Facebook graph api
0
Android facebook restful graph api not showing user groups
0
Facebook Chart: Unable to Get Group Feed


Loading...
X
Show
Funny
Dev
Pics