Я использую следующий код для публикации на стене устройства пользователя. Мне удалось получить список друзей и их идентификаторы. Используя идентификатор друга, как я могу использовать следующий код для публикации на стене выбранного друга, в зависимости от идентификатора друга?Как я могу опубликовать на стенах друзей?
if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) {
SLComposeViewController *controller = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook ];
SLComposeViewControllerCompletionHandler myBlock = ^(SLComposeViewControllerResult result) {
if (result == SLComposeViewControllerResultCancelled) {
NSLog(@"Cancelled");
} else {
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Posted!!!"
message:@"your status is posted to facebook successfully" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
[alert show];
}
[controller dismissViewControllerAnimated:YES completion:Nil];
};
controller.completionHandler =myBlock;
[controller setInitialText:@" hello there you got a text ..."];
[self presentViewController:controller animated:YES completion:Nil];
}
Это уже ответили здесь: http://stackoverflow.com/questions/4126400/api-facebook- iphone-возможно к посту-к-а-друзья-стен – Anton