我在 Facebook 上分享图片的应用。这工作正常,但我想禁用用户界面与帖子。所以用户不能修改我的初始文本这可能吗?
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 和取消 btn。所以用户只能发布。