NSArray* friends = [result objectForKey:@"data"] ;
NSLog(@"Found: %i friends", friends.count);
for (NSDictionary<FBGraphUser>* friend in friends) {
NSLog(@"I have a friend named %@ with id %@", friend.name, friend.id);
// person.firstName = friend.first_name;
// person.lastName = friend.last_name;
Contact_Details *person;
person = [[Contact_Details alloc] init];
person.emails = [[NSMutableArray alloc] init];
person.fullName = friend.name;
email2=friend.id;
[person.emails addObject:email2];
[GathrUsers addObject:person]; //gathrusers is mutualable array of objects
这里的列表显示了Facebook好友的姓名,但我需要那些已安装应用程序的人的姓名,而不使用FBFriendPicker。