我的客户希望在Instagram,Twitter,Facebook上分享图像.
我已经完成了Twitter和Facebook,但没有在互联网上找到任何API或任何东西在Instagram上分享图像.可以在Instagram上分享图像吗?如果是的话怎么样?
当我查看Instagram的开发者网站时,我发现了Ruby on Rails和Python的Libraries.但是没有iOS Sdk的文档
我已根据instagram.com/developer从Instagram获取令牌,但现在不知道下一步与instagram图像共享该怎么做.
我在我的iOS应用程序中使用以下代码来使用Instagram iPhone挂钩将照片发布到Instagram.我只希望"Open In ..."菜单中有Instagram应用程序,没有其他应用程序.但在我的情况下,Camera +也出现了.我怎么能限制在Instagram?
另外,我可以直接打开Instagram而不是显示Open In菜单吗?
NSURL *instagramURL = [NSURL URLWithString:@"instagram://app"];
if ([[UIApplication sharedApplication] canOpenURL:instagramURL]) {
//imageToUpload is a file path with .ig file extension
self.documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:imageToUpload]];
self.documentInteractionController.UTI = @"com.instagram.photo";
self.documentInteractionController.annotation = [NSDictionary dictionaryWithObject:@"my caption" forKey:@"InstagramCaption"];
[self.documentInteractionController presentOpenInMenuFromBarButtonItem:self.exportBarButtonItem animated:YES];
}
Run Code Online (Sandbox Code Playgroud)