gpt4 book ai didi

ios - 插件 com.apple.share.Facebook.post 失效

转载 作者:IT王子 更新时间:2023-10-29 08:11:25 25 4
gpt4 key购买 nike

在我的应用程序中,我使用以下代码来共享带有文本的图像:

- (IBAction)sharePressed:(id)sender {
UIImage *postingImage = [UIImage imageWithContentsOfFile:self.filepath];
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[@"Lorem ipsum", postingImage] applicationActivities:nil;
[self presentViewController:activityViewController animated:YES completion:nil];
}

将图像发布到 Facebook 工作正常,它出现在我的 FB 墙上,但是在我的控制台中我收到以下消息:

插件 com.apple.share.Facebook.post 无效

我已经在几台设备上对其进行了测试,据我所知,它只发生在我安装了 iOS 8.1 的 iPhone 6 上。

有人知道该消息的含义以及如何防止它显示吗?

最佳答案

这是正确答案 ios plugin com.apple.share.Facebook.post do not show provided text .真可惜。

I'm afraid to tell you, you cannot post text to Facebook programatically. It's a new Facebook prohibition that forbids "pre-filled" Facebook sharing. That is why newer versions of iOS do not show your text, even tough it's correctly provided (and works on Twitter and in other sharing options).

For more info please refer to https://developers.facebook.com/docs/apps/review/prefill

关于ios - 插件 com.apple.share.Facebook.post 失效,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27332273/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com