Instagram iOS API for publishing video

Is there any public API for posting videos on Instagram?

We know that on iOS you can share an image (JPEG or PNG) using iPhone Hooks through iOS Document Interaction. On Android, you can share videos using the Android Intent .

The Cinamatic iOS application does this after the oAuth API, but according to the Instagram API documentation , a media object like β€œvideo” is not mentioned.

We also know that other applications that do not use Instagram oAuth save the video in the video folder and then open the Instagram camera using the mentioned iPhone Hooks to allow the user to open this video, but this is not so smart.

So how does Cinamatic do this using the API?

+7
api ios objective-c video instagram
source share
2 answers

An undocumented Instagram video allows you to share videos with Instagram like a Camera Hook.

URL: instagram://library Path parameter: AssetPath Comment parameter: InstagramCaption 

and so you have something like

 NSString *instagramURL = [NSString stringWithFormat:@"instagram://library?AssetPath=%@&InstagramCaption=%@",videoURL,[videocaption stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]]]; if ([[UIApplication sharedApplication] canOpenURL:instagramURL]) { [[UIApplication sharedApplication] openURL:instagramURL]; } 
+2
source share

Instagram currently does not support third-party video uploads. This is spoken about here: Posting videos on instagram using interceptors

0
source share

All Articles