В настоящее время я использую FBFriendPicker из API Facebook для iOS, чтобы получить имя выбранного друга. Как я могу одновременно получить идентификатор пользователя друга? Для имени используется приведенная ниже функция:
// 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 user in self.friendPickerController.selection) {
self.name.text = user.name;
}
[self dismissModalViewControllerAnimated:YES];
}
Подробнее здесь: https://stackoverflow.com/questions/120 ... ok-ios-api