다음 코드를 사용하여 기기 사용자의 벽에 게시하고 있습니다. 나는 그럭저럭 친구 목록과 그들의 ID를 얻을 수 있었다. 친구의 ID를 사용하여 친구의 ID에 따라 선택한 친구의 담벼락에 다음 코드를 게시하려면 어떻게해야합니까?친구의 벽에 게시하려면 어떻게해야하나요?
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-possible-to-a-friends-wall – Anton