Facebook sharing option is not available in ios 8 using an UIActivitycontroller

I have to share Text appending with the url using the UIActivityController. It shows Email, twitter and other sharing. But Facebook sharing is not shown. I have already signed in with the Facebook too.

Here is my code.

NSString *str_link = @"www.examplelink.com";
NSArray *movieitems = [[NSArray alloc] initWithObjects:@"Check out this really cool!n", str_link, nil]; 

UIActivityViewController *controller = [[UIActivityViewController alloc]initWithActivityItems:movieitems applicationActivities:nil];

[self presentViewController:controller animated:YES completion:nil];

Source: facebook

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.