1
    - (void)facebookViewControllerDoneWasPressed:(id)sender {

NSLog(@"FACEBOOK VIEW CONTROLLER");


NSMutableString *text = [[NSMutableString alloc] init];

// we pick up the users from the selection, and create a string that we use to update the text view
// at the bottom of the display; note that self.selection is a property inherited from our base class
for (id<FBGraphUser> user in self.friendPickerController.selection) {
    if ([text length]) {
        [text appendString:@", "];
    }
    [text appendString:user.name];

    //[user objectForKey:@"email"];

 //   [text appendFormat:[user objectForKey:@"email"]];


    NSLog(@"EMAIL IS %@", [user objectForKey:@"email"]);

}

   // [self fillTextBoxAndDismiss:text.length > 0 ? text : @"Email"];

[self fillTextBoxAndDismiss:text];


}

我想获取我的朋友列表的电子邮件地址。

我得到了 FBGraphUser 用户,但它没有给我回电子邮件

我试过这个,但它返回null。

           NSLog(@"EMAIL IS %@", [user objectForKey:@"email"]);

这里email为空,是否可以访问我朋友的email?

4

0 回答 0