在我的应用程序中,我必须在不打开 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:
- Instagram is about your life on the go – we hope to encourage photos from within the app.
- 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/