iOS6 用に facebook と twitter を実装しましたが、名前、電子メール、画像などのユーザーの詳細を取得できません。これについて誰かを助けてくれますか?以下は私のコードです:
-(IBAction)facebook
{
SLComposeViewController *fbController=[SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
if([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook])
{
SLComposeViewControllerCompletionHandler __block completionHandler=^(SLComposeViewControllerResult result){
[fbController dismissViewControllerAnimated:YES completion:nil];
switch(result){
case SLComposeViewControllerResultCancelled:
default:
{
NSLog(@"Cancelled.....facebook");
}
break;
case SLComposeViewControllerResultDone:
{
NSLog(@"Posted....facebook");
}
break;
}};
[fbController addImage:[UIImage imageNamed:@"ipadicon_72x72.png"]];
[fbController setInitialText:@"Check out this article."];
//[fbController addURL:[NSURL URLWithString:@"http://soulwithmobiletechnology.blogspot.com/"]];
[fbController setCompletionHandler:completionHandler];
[self presentViewController:fbController animated:YES completion:nil];
}
}