[英]iOS - Can't share images to Facebook anymore?
共享圖像不再有效。 該圖像不會顯示在FB彈出窗口中,也不會發送到FB。 該圖片有效,並且相同的代碼適用於Twitter。 是否有一些新的解決方法可以將圖像共享到Facebook?
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook])
{
SLComposeViewController *composeController = [SLComposeViewController
composeViewControllerForServiceType:SLServiceTypeFacebook];
[composeController setInitialText:@"whatever"]; //this doesn't work either
[composeController addImage:self.shareImageView.image];
[composeController addURL:[NSURL URLWithString:@"https://whatever"]];
SLComposeViewControllerCompletionHandler completionBlock = ^(SLComposeViewControllerResult result){
if (result == SLComposeViewControllerResultDone) {
//done
}
};
composeController.completionHandler = completionBlock;
[self presentViewController:composeController
animated:YES completion:nil];
}
編輯:如果我刪除addURL:
它的工作原理。 因此,沒有辦法與URL共享圖像嗎?
檢查一下: https : //developers.facebook.com/docs/apps/review/prefill
“將自己的內容添加到用戶手動輸入的內容中。這包括主題標簽,超鏈接或URL。” 被視為違規。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.