Reputation: 6823
I am looking to combine a call to Facebook Graph API. I would like to collect both the friends and profile information in one go.
I have also raised a separate question issue here - Facebook SDK collecting user information and friends
What is the correct/easiest way to create a Facebook Graph request for both these parts?
The user is logged in with this permission array:
NSArray *permissionsArray = @[ @"user_about_me", @"user_birthday", @"user_location", @"email"];
I am then trying to create a graph connection to get information 'such as' username, email, friend list. Ideally I want to do this in one FBRequest, rather than separate FBRequestConnection(s). How can I accomplish this? I have looked through the Facebook SDK information and cannot see how to do this, how can I find out more information on this?
Upvotes: 0
Views: 180
Reputation: 11852
You can get all of this information in one API call to:
/me?fields=id,username,email,friends
I'm not sure of the syntax for iOS.
If you want more data about your friends, you can specify fields through field expansion, like this:
/me?fields=id,username,email,friends.fields(id,name,username,birthday)
Upvotes: 1