我目前正在使用Facebook的api的FBFriendPicker獲取一個選定的朋友的名字。我怎樣才能同時獲得朋友的用戶ID。以下功能用於名稱。如何使用FBFriendPicker從Facebook獲取用戶ID iOS API a
// Facebook integration
- (void)facebookViewControllerDoneWasPressed:(id)sender {
NSString *text;
// 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) {
self.name.text = user.name;
}
[self dismissModalViewControllerAnimated:YES];
}