Organize everyone, but this information is not.
Here is how you can get your taggable_friends Facebook user profile (great too!)
[FBRequestConnection startWithGraphPath:@"/me/taggable_friends?fields=id,name,picture.type(large)"
parameters:nil
HTTPMethod:@"GET"
completionHandler:^(
FBRequestConnection *connection,
id result,
NSError *error
) {
NSArray* friends = [result objectForKey:@"data"];
NSLog(@"Found: %i friends", friends.count);
for (NSDictionary<FBGraphUser>* friend in friends) {
NSDictionary *pictureData = [[friend objectForKey:@"picture"] objectForKey:@"data"];
NSString *imageUrl = [pictureData objectForKey:@"url"];
NSLog(@"Facebook profile image url %@", imageUrl);
}
}];
This returns all Facebook friends and analyzes each friend for an url image. You can parse the "friend" node for the taggable link (only works if you tag a friend from the application) and their username.
source
share