ios 插件 com.apple.share.Facebook.post 不显示提供的文本 [英] ios plugin com.apple.share.Facebook.post do not show provided text

查看:55
本文介绍了ios 插件 com.apple.share.Facebook.post 不显示提供的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我使用以下代码允许与文本共享图像:

In my app I'm using the following code that allows to share an image with a text:

- (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];
}

发布时我可以看到图片,但看不到文字.文本也不会出现在 FB 中.

And when posting I can see image, but can't see text. Also text doesn't appear in FB.

推荐答案

我不敢告诉你,你不能以编程方式向 Facebook 发布文本.这是一项新的 Facebook 禁令,禁止预先填充"的 Facebook 共享.这就是为什么较新版本的 iOS 不显示您的文本,即使它正确提供(并且适用于 Twitter 和其他共享选项).

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).

更多信息请参考https://developers.facebook.com/docs/apps/review/prefill)

这篇关于ios 插件 com.apple.share.Facebook.post 不显示提供的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆