ios - Instagram 自动发布或通过第三方应用程序在 IOS 中一键分享

标签 ios objective-c image instagram instagram-api

在我的应用程序中,我必须在不打开 Instagram 应用程序的情况下在 Instagram 上共享带有文本的图像。我想一键分享。我发现了这个 2 年前的旧线程 How to share an image on Instagram in iOS? .

但是它说我们必须打开 Instagram。

那么,是否可以在不打开 UIDocumentInteractionController 的情况下在后台或用户单击一次将图像分享到 Instagram? 寻找最佳解决方案。提前致谢!

最佳答案

iOS 为您提供的所有方式都会以某种形式呈现 Instagram 用户界面——Apple 不希望恶意应用程序能够在未经用户同意的情况下发布。发送电子邮件、短信等也是如此。

因此,下一个选择是以某种方式直接与 Instagram 服务器对话。

来自Instagram API documentation :

At this time, uploading via the API is not possible. We made a conscious choice not to add this for the following reasons:

  1. Instagram is about your life on the go – we hope to encourage photos from within the app.
  2. We want to fight spam & low quality photos. Once we allow uploading from other sources, it's harder to control what comes into the Instagram ecosystem. All this being said, we're working on ways to ensure users have a consistent and high-quality experience on our platform.

另一种选择是逆向工程。这可能会很痛苦,会违反服务条款,可能会在某个时候停止工作,并且会让 Instagram 生你的气。我发现这篇博文似乎有人做过,但我没有测试过,不建议你这样做。 (虽然很好的学习经验)

http://lancenewman.me/posting-a-photo-to-instagram-without-a-phone/

关于ios - Instagram 自动发布或通过第三方应用程序在 IOS 中一键分享,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28559751/

相关文章:

objective-c - 仅当行被滑动时才从 UITableView 中删除删除按钮

ios - 如何将 xcode 5 测试用例分组到测试套件中

ios - Lync 应用程序在从 iOS8 上的其他应用程序启动时崩溃

objective-c - 如何在我的 OS X 应用程序中以编程方式运行 applescript (.scpt)?

html - 图片 srcset 和同位素网格在单击时更改图像宽度而不是视口(viewport)

jquery - 使用 jQuery 单击时保持图像悬停按钮

ios - 使用 UIControlEventTouchDragEnter 触发按钮的方法......但不起作用?

objective-c - iOS7 中奇怪的 UITabBar 颜色不一致

ios - 将设备 token 从 viewDidLoad 发送到 webView Objective C

javascript - 图片完整属性返回undefined