2014-09-12 106 views
7

是否有任何公共API在Instagram上发布视频?Instagram iOS API发布视频

我们知道在iOS上可以通过iOS Document Interaction使用iPhone Hooks来共享图像(JPEG或PNG)。 在Android上可以通过Android Intent分享视频。

iOS应用Cinamatic在oAuth API后执行此操作,但根据Instagram API documentation,没有提及类型为“video”的媒体对象。

我们还知道,其他未使用Instagram oAuth的应用会将视频保存到视频文件夹中,然后通过提及的iPhone挂钩打开Instagram相机,以便让用户打开该视频,但它并不那么聪明。

那么Cinamatic是如何使用API​​来做到这一点的?

回答

0

目前Instagram不支持任何第三方直接上传视频。有一个关于这个在这里讨论:Posting video on instagram using hooks

+0

我通过上面的Instagram视频挂钩,通过Instagram的唯一工作和认可的解决方案回顾其状态。 – loretoparisi 2014-11-17 20:27:08

+0

理论上今天2015年12月23日,是否可能,但这是一个有点令人困惑的文档 – jose920405 2015-12-23 15:28:55

2

的无证Instagram的视频挂钩让你分享至Instagram的视频很喜欢Camera Hook

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

,所以你有类似

NSString *instagramURL = [NSString stringWithFormat:@"instagram://library?AssetPath=%@&InstagramCaption=%@",videoURL,[videocaption stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]]]; 

if ([[UIApplication sharedApplication] canOpenURL:instagramURL]) { 
    [[UIApplication sharedApplication] openURL:instagramURL]; 
} 
+0

错误http://stackoverflow.com/questions/34226433/instagram-hooks-pre-select-media-issue – jose920405 2015-12-23 17:22:08