Finally, I found a solution.
I have an NSDictionary dict whose key is the facebook user id and the value is the name. Roughly speaking, this is the code:
NSMutableArray *results = [[NSMutableArray alloc] init]; for (id key in dict) { NSString *name = [dict valueForKey:key]; id<FBGraphUser> user = (id<FBGraphUser>)[FBGraphObject graphObject]; user.id = key; [user setName:name];
UPDATE: it doesn't seem to be working properly ... you will see that the friends checked correctly, but when you go to parse .selection , when you finish the selection, you will only get the friends that you checked in the user interface, not predefined ...
UPDATE 2: it seems that everything is fine if you fill in all the fields listed in the FBGraphUser.h header file
source share