title: Sharing image to Whatsapp & Facebook
body: <p>I'm already able to share photos to Whatsapp but the way I do this is by providing Whatsapp option in a <code>UIActivityViewController</code> and then showing a <code>UIDocumentInteractionController</code>.</p>
  
  <p>From this <code>UIDocumentInteractionController</code>, I choose the Whatsapp option which redirects the user to Whatsapp and enables him to share the photo.</p>
  
  <p>So far my code is like this:</p>
  
  <pre><code>if ([activityType isEqualToString:@"whatsappSharing"]) {
      if ([[UIApplication sharedApplication] canOpenURL: [NSURL URLWithString:@"whatsapp://app"]]) {
          NSString *savePath  = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/whatsAppTmp.wai"];
  
          [UIImageJPEGRepresentation(finalImage, 1.0) writeToFile:savePath atomically:YES];
  
          weakDocumentInteraction = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:savePath]];
          weakDocumentInteraction.UTI = @"net.whatsapp.image";
          weakDocumentInteraction.delegate = weakSelf;
  
          [weakDocumentInteraction presentOpenInMenuFromRect:CGRectZero inView:weakSelf.view animated:YES];
      }
  }
  </code></pre>
  
  <p>I want to be able to select the option from a <code>UIActivityViewController</code> and directly show Whatsapp. </p>
  
  <p>Is there a way to jump this second part of presenting the <code>UIDocumentInteractionController</code> and selecting the Whatsapp app option programmatically?</p>
  
  <p>Currently, the user has to select the Whatsapp option twice in order to share the image.</p>
  
  <p>PS: I'm using <code>UIActivityViewController</code> because I'm using other activities too.</p>