Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

plugin com.apple.share.Facebook.post invalidated

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

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

plugin com.apple.share.Facebook.post invalidated

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?

like image 683
suttie Avatar asked Dec 06 '14 13:12

suttie


1 Answers

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

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

like image 105
ToddB Avatar answered Oct 23 '22 14:10

ToddB