title: Instagram video share using hooks
body: <p>I want to post a video from camera roll to Instagram with tags. My application uses following code.</p>
  
  <pre><code>- (void)share
  {
      NSString *Caption = @"#baby";
      NSString *urlString = [NSString stringWithFormat:@"assets-library://asset/asset.mov?id=%@&amp;ext=mov",assetLocalID];
      NSURL *url = [NSURL URLWithString:urlString];
      NSString *escapedString   = [url.absoluteString URLEncode];
      NSString *escapedCaption  = [caption URLEncode];
      NSURL *instagramURL       = [NSURL URLWithString:[NSString stringWithFormat:@"instagram://library?AssetPath=%@&amp;InstagramCaption=%@", escapedString, escapedCaption]];
      [[UIApplication sharedApplication] openURL:instagramURL];
  }
  
  - (NSString *)URLEncode
  {
      return [self URLEncodeUsingEncoding:NSUTF8StringEncoding];
  }
  
  - (NSString *)URLEncodeUsingEncoding:(NSStringEncoding)encoding {
      return (__bridge_transfer NSString *)CFURLCreateStringByAddingPercentEscapes(NULL, (__bridge CFStringRef)self,NULL,(CFStringRef)@"!*'\"();:@&amp;=+$,/?%#[]% ",CFStringConvertNSStringEncodingToEncoding(encoding));
  }
  </code></pre>
  
  <p>But caption is not added into instagram. <strong>I wanted to add the tags.</strong>
  I have gone through <a href="https://www.instagram.com/developer/mobile-sharing/iphone-hooks/" rel="nofollow noreferrer">https://www.instagram.com/developer/mobile-sharing/iphone-hooks/</a>, but it didnt help me! Please share your thoughts.</p>