title: Post Video on Instagram
body: <p>I am working on the app where I need to post the image/video on instagram. I have successfully able to post the image on Instagram with following code: </p>
  
  <pre><code>        NSString* filename = [NSString stringWithFormat:@"myimage.igo"];
          NSString* savePath = [imagesPath stringByAppendingPathComponent:filename];
          [UIImagePNGRepresentation(myImage) writeToFile:savePath atomically:YES];
          NSURL *instagramURL = [NSURL URLWithString:@"instagram://app"];
          if ([[UIApplication sharedApplication] canOpenURL:instagramURL])
          {
              self.documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:savePath]];
              self.documentInteractionController.UTI = @"com.instagram.image";
              self.documentInteractionController.delegate = self;
              [self.documentInteractionController presentOpenInMenuFromRect:CGRectZero inView:self.view animated:YES];
          }
  </code></pre>
  
  <p>But didn't find any way to post the video on it. I checked the Instagram app and found that we can post/upload video too. It means via code It should be possible. Is anyone know about this?</p>
  
  <p>Thanks in advance. </p>