IOS Image Sharing for LinkedIn with UIActivityViewController

I am trying to share images with all possible applications installed on my device. But, unfortunately, I can not successfully send the image to LinkedIn (already installed and registered as a verified user).

LinkedIn appears in the list of shared actions in the UIActivityViewController when I click on it. It displays a dialog with an image that I added as an activity element, but it is not sent to LinkedIn.

Successfully tested for Google+, FB, and Twitter.

If I submit the URL, it will be sent to the LinkedIn app. Only image is not sent.

I got these lines in the console log:

2015-05-06 19:27:54.369 Share[1659:309834] LaunchServices: invalidationHandler called 2015-05-06 19:27:59.824 Share[1659:309793] plugin com.linkedin.LinkedIn.ShareExtension invalidated

Here is the code I'm trying:

- (IBAction)openShare:(id)sender{
UIImage *img1 = [UIImage imageNamed:@"Test1.jpg"];
NSString *str = @"iOS";
NSURL *url = [NSURL URLWithString:@"http://www.google.com"];

UIActivityViewController *activityViewController =
[[UIActivityViewController alloc] initWithActivityItems:@[img1,url,str]
                                  applicationActivities:nil];

[self presentViewController:activityViewController
                                   animated:YES
                                 completion:^{
                                     NSLog(@"completed");
                                 }];

}

+4
1

. , , , , .

, activityType com.linkedin.LinkedIn.ShareExtension

+4

All Articles