插件com.apple.share.Facebook.post无效 [英] plugin com.apple.share.Facebook.post invalidated

查看:67
本文介绍了插件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];
}

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

Posting the image to Facebook works fine and it appears on my FB wall, however in my console I get the following message:

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

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

I've tested it on a couple of devices, as far as I could see it only happens on my iPhone 6 with iOS 8.1 installed.

任何人都知道该消息的含义以及如何阻止它显示?

Anyone knows what that message means and how to prevent it from showing?

推荐答案

这是正确的回答 ios plugin com.apple.share .Facebook.post不显示提供的文本。这是一个无赖。

Here is the correct answer ios plugin com.apple.share.Facebook.post do not show provided text. It's a bummer.


我不敢告诉你,你不能以编程方式将文字发布到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

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

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

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