通过您自己的iOS应用程序将照片上传到Instagram

问题描述:

Instagram最近改变了他们的API政策,允许开发人员通过他们自己的应用程序将图片发布到Instagram平台。我们之前使用的其他几种技术来做到这一点。其中一个是调用Instagram应用程序,它实际上会打开Instagram并从那里进行共享。有关如何完成此操作的教程可以在这里看到:如何从您的Instagram分享图像自己的iOS应用程序

Instagram recently made a change to their API policy which allowed developers to post pictures to the Instagram platform via their own app. Several other techniques we're previously employed to do this. One of them was to invoke the Instagram application which would essentially open up Instagram and do the sharing from there. A tutorial on how this can be done can be seen here: How to share image to Instagram from your own iOS app

然而,有几个应用程序允许直接共享到Instagram平台而无需调用Instagram应用程序。 Hipstamatic的Oggl 允许直接共享到Instagram而无需调用Instagram。下面我发布了一些过程的屏幕截图。

However there are several applications out there that allow for direct sharing to the Instagram platform without invoking the Instagram application. Hipstamatic's Oggl allows for direct sharing to Instagram without invoking Instagram. Below I have posted some screen shots of the process.

拍完照片后,Oggl给了我其他几个社交网络,我可以分享我的照片。我选择了Facebook和Instagram。

Once my picture was taken, Oggl gave me several other social networks to which I could share my photo to. I've selected Facebook and Instagram.

在我选择了Instagram之后,它打开了Safari,它带我到以下两页授权Oggl发布到Instagram。我输入了我的Instagram凭据,然后它将我带到授权页面。

After I selected Instagram, it opened up Safari and it brought me to the following two pages to authorize Oggl to post to Instagram. I entered in my Instagram credentials and then it brought me to the authorization page.

一旦我授权Oggl,我就可以上传到Instagram,几秒钟后,我在Instagram新闻Feed中看到了这张照片。这种类型的共享非常类似于Facebook和Twitter共享。它有相同的概念。 如何才能实现这一目标?如何在应用中复制这个确切的流程?在我的应用程序中拍摄的照片 612像素×612像素,因此它们与Instagram上拍摄的照片尺寸兼容。我已经实现了分享到Facebook和Twitter,但我想像Oggl那样实现上传到Instagram。这可能吗?

Once I authorized Oggl, I was able to upload to Instagram and within seconds, I saw the photo on my Instagram news feed. This type of sharing is very analogous to Facebook and Twitter sharing. It has the same concept. How can one go about doing this? How can one replicate this exact process in their app? The pictures taken in my application are 612px by 612 px, so they are compatible with the dimensions for photos taken on Instagram. I've already implemented sharing to Facebook and Twitter but I would like to implement uploading to Instagram just like how Oggl did. Is this possible?

有许多iOS开发人员可以从这个问题的详细规范答案中受益。

There are many iOS developers out there who can benefit from a well detailed canonical answer to this question.

谢谢

Hipstamatic是为数不多的应用之一已经通过Instagram的API获得了写访问权。

Hipstamatic are one of the few apps that has been given write access via Instagram's API.

Instagram没有用于发布照片的公共API,它可以让你获取他们的数据,但不能自己编写。

Instagram doesn't have a public API for posting photos, it lets you get their data but not write your own.

Hipstamatic和其他几个应用已与Instagram达成特殊协议,允许他们使用写API并直接发布照片。

Hipstamatic and several other apps have negotiated special deals with Instagram that allow them to use the write API and post photos directly.

对于所有其他开发人员,您需要使用iOS挂钩通过切换到他们的应用程序来分享到Instagram。

For all other developers you need to use iOS hooks to share to Instagram by switching to their app.

据我所知,让Instagram不容易你写访问权限 - 你需要拥有一个高质量内容的*应用程序,并与合适的人友好:)

As far as I know its not easy to get Instagram to allow you write access- you would need to have a top app with high quality content and be friendly with the right people :)