看起来像SDK创建" iOS Photo
"默认情况下
相反,我如何指定新的专辑创建为" XXXX"
成功发布到[facebook
]后,它会显示到(http://www.apple.com/iOS)的iOS相册链接
相反,如何指定自己的相册链接
答案 0 :(得分:2)
试试这个:
SLComposeViewController *Facebooksheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
[Facebooksheet setInitialText:@"Hellow, World"];
[Facebooksheet addImage:[UIImage imageNamed:@"image.png"]];
[Facebooksheet addURL:[NSURL URLWithString:@"http://www.google.co.in"]];
[Facebooksheet setCompletionHandler:^(SLComposeViewControllerResult result) {
switch (result) {
case SLComposeViewControllerResultCancelled:
NSLog(@"Post Canceled :(");
break;
case SLComposeViewControllerResultDone:
NSLog(@"Sucessfully Post :)");
break;
default:
break;
}
}];
[self presentViewController:Facebooksheet animated:YES completion:nil];