title: UIActivityViewController or UIDocumentInteractionController with WhatsApp and FB
body: <p>I need to have Facebook and WhatsApp as sharing options for my image. I've already implemented UIActivityViewController, where i can share via Facebook and <code>UIDocumentInteractionController</code> where i can share via WhatsApp. I don't know how to merge these things.</p>
  
  <p><strong>UIActivityViewController:</strong></p>
  
  <pre><code>UIActivityViewController *activityViewContoller = [[UIActivityViewController alloc] 
         initWithActivityItems:@[@"Test", image] applicationActivities:nil];
  [self presentViewController:activityViewContoller animated:YES completion:nil];
  </code></pre>
  
  <p><strong>UIDocumentInteractionController:</strong></p>
  
  <pre><code>NSString *savePath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/whatsAppTmp.wai"];
      [UIImageJPEGRepresentation(image, 1.0) writeToFile:savePath atomically:YES];
  
      _documentInteractionController = [UIDocumentInteractionController 
                   interactionControllerWithURL:[NSURL fileURLWithPath:savePath]];
      _documentInteractionController.UTI = @"net.whatsapp.image";
      _documentInteractionController.delegate = self;
      [_documentInteractionController presentOpenInMenuFromRect:CGRectZero 
                                      inView:self.view animated:YES];
  </code></pre>
  
  <p>I want to have both of them in one popover, however I have no idea how to achieve it. Any tip please?</p>
  
  <p>I've checked out <a href="https://stackoverflow.com/questions/19591028/uiactivityviewcontroller-and-uidocumentinteractioncontroller">StackOverFlow question 1</a>, but it doesn't help me at all. My file is .wai (for WhatsApp) so when i try to send it via FB file is unable to open. Also it shows all options, while i want only 2(FB+WhatsApp) to be visible. Following the <a href="https://stackoverflow.com/questions/12591871/open-in-uidocumentinteractioncontroller-how-to-filter-options-in-sdk-ios-6">StackOverFlow question 2</a> I can show only FB (working one, because i set normal image) but can't add WhatsApp (no .wai file, i don't know what to do with UTI). Is there any way to solve this issue?</p>