// I have already got approval from facebook
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/me/friends"
parameters:nil HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection, id result, NSError *error) {
NSArray* friends = [result objectForKey:@"data"];
for (NSDictionary* friend in friends) {
NSLog(@"I have a friend named %@",[friend objectForKey:@"name"]);
}
}];
}
}];
//Please review