I combined with UIActivityViewController to share images with Facebook:
NSArray* dataToShare = imageArray;
activityViewController =
[[UIActivityViewController alloc] initWithActivityItems:dataToShare
applicationActivities:nil];
[[[self parentViewController] parentViewController] presentViewController:activityViewController animated:YES completion:nil];
Sharing works fine, but there is a problem sharing multiple images. If there are more than 5 images, it only shares the first 5; the rest are ignored. The same problem occurs when saving images in a camera roll, but for the mail composer all the images are there.
How can I solve this problem?
Guru source
share