title: Sharing image through FBDialog fails in facebook app
body: <p>I am attempting to share a generated image through the facebook app with the FBDialog class. The idea is to allow tagging of friends and locations so the SLComposeViewController isn't quite as ideal (though I am falling back to that). The problem is that after it opens the facebook app and the users presses share, it never actually shares. It gets stuck at the loading screen and the bar keeps starting back from 0%, going past 100%, then back to 0.</p>
  <p>I'm using the following code. I'm not sure if this is a problem with my implementation or with the facebook app itself.</p>
  <pre><code>if ([FBDialogs canPresentShareDialogWithPhotos]) {
      FBPhotoParams *params = [[FBPhotoParams alloc] init];
      UIImage *img = [self generatePrayerImage];
      params.photos = @[img];
      
      [FBDialogs presentShareDialogWithPhotoParams:params
                                       clientState:nil
                                           handler:^(FBAppCall *call,
                                                     NSDictionary *results,
                                                     NSError *error) {
                                               if (error) {
                                                   NSLog(@&quot;Error: %@&quot;,
                                                         error.description);
                                               } else {
                                                   NSLog(@&quot;Success!&quot;);
                                               }
                                           }];
  }
  </code></pre>
  <p><img src="https://i.stack.imgur.com/JctNR.png" alt="enter image description here" />
  Thanks.</p>