我在Facebook上分享图片的应用。工作正常,但我想禁用用户interface与post。所以用户不能修改我的initialText这可能吗?
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) {
SLComposeViewController *fbComposer = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
[fbComposer setInitialText:@"Yes U Are?"];
if ([fbComposer addImage:[UIImage imageWithData:[Array objectAtIndex:i]]]) {
}
[self presentViewController:fbComposer animated:YES completion:nil];
}else {
UIAlertView *alertView = [[UIAlertView alloc]
initWithTitle:@"Facebook Error"
message:@"You may not have set up facebook service on your device or\n You may not connected to internent.\nPlease check ..."
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles: nil];
[alertView show];
}
}
听到的是Facebook分享的形象我想只点击帖子btn和Cancle btn。所以用户只能发帖。