问题描述
在使用iOS(swift 3)应用程序登录Instagram期间,出现以下错误:
During Instagram login using iOS (swift 3) app I am getting error which is below:
{代码":403,错误类型":"OAuthForbiddenException",错误消息":您不是此客户端的沙箱用户"}
.
请帮助我理解并解决上述问题.
Please help me to understand and solve above issue.
推荐答案
您的申请尚未得到Instagram的审查和批准.因此,您必须使用沙盒模式进行开发.让我告诉你,这是一个痛苦的屁股.
You're application has not yet been reviewed by Instagram and approved. Therefore, you must develop in Sandbox Mode. It's a pain in the butt, let me tell you.
沙盒模式的要旨是,您必须在instagram上吸引一些朋友才能登录开发者网站,并接受您的沙盒邀请.然后,您将可以使用API客户端查看其配置文件.
The gist of Sandbox mode is that you have to get a few of your friends on instagram to log into the Developer Site and accept your Sandbox Invites. Then, you'll be able to use your API client to view their profiles.
Instagram基本上会创建一个Instagram的小沙盒版本,只有您和您的朋友(已批准Sandbox邀请)存在.
Instagram basically creates a little sandbox version of Instagram where only you and your friends (that have approved the Sandbox Invite) exist.
IMO,这对开发人员来说是一个障碍.如果您是我,我很乐意接受您的申请的沙箱邀请,因为我知道必须请您的朋友这样做让您可以制作您的视频并提交申请以供批准是一件很烦人的事情(我在Instagram上是@mikeghen).
IMO, this is such an obstacle for developers. If you PM me, I'd be happy to accept a sandbox invite for your application because I know how annoying it can be to have to ask your friends to do this just so you can make your video and submit you application for approval (I am @mikeghen on Instagram).
我强烈建议您花时间通读这些文档,详细介绍沙箱模式"和权限查看".
I highly recommend taking the time to thoroughly read through these documents detailing Sandbox Mode and Permission Review.
此外,请确定您的应用程序属于Instagram第三方应用程序的用例之一.请参阅登录权限文档中的有效用例..."部分.如果您不适合其中一种(据我所知除外),那么您必须回到制图板上.IMO,最好将您的应用程序适合这里的用例,因为那样的话,人们将实际使用您的应用程序,而Instagram将允许您访问API.
Also, definitly verify that your application falls into one of the use cases for Instagram third-party applications. See "Valid Use Cases..." section on the Login Permissions documentation. If you don't fit into one (exclusively one from what I understand), then you have to go back to the drawing board. IMO, its best to fit your application into the use cases here because then people will actually use your application and Instagram will let you have access to the API.
因为在6月锁定了他们的API2016 ,Instagram引入了Sandbox,使开发人员更加困难.但是,如果您可以在Instagram上吸引5-10个您的朋友接受您的Sandbox邀请,那么这真的很顺畅(直到您尝试使您的应用程序批准:P).祝你好运!下午给我更多.
Since locking down their API in June 2016, Instagram has made it much more difficult for dev by introducing the Sandbox. However, if you can get 5-10 friends of yours on Instagram to accept your Sandbox Invites, then it's really smooth sailing (until you try to get your application approved :P). Good luck! PM me for more.
这篇关于Instagram集成错误403的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!