FBFriendPickerViewControllerを使用してすべての友達を表示していますが、1人を選択すると(複数選択が無効)、彼の名前とユーザー名を取得したいと思います。
ユーザーの名前が正しく返され、ユーザー名がnullを返す理由を誰かが説明してもらえますか?
- (void)facebookViewControllerDoneWasPressed:(id)sender {
for (id<FBGraphUser> friend in self.friendPickerController.selection) {
NSLog(@"%@", friend.name);
NSLog(@"%@", friend.username);
}
}
友達のユーザー名を取得する最良の方法はどれですか?
ありがとう!