JAH*_*lia 13 iphone ios instagram
我正在尝试将Instagram登录集成到我的应用程序中以获取登录用户的详细信息,我已经在Instagram上注册了我的应用程序并获得了我的客户端ID,然后我在项目设置中添加了一个新的URL类型标识符:( igxxxx其中xxxx是我的客户端ID),我还将重定向URI设置为(xxxx://authorize),一旦我成功登录(使用webView)Instagram显示一个白色的空白页面,其中(400 Bad Request)文本写在顶部,但是,当我更改将URI重定向到其他任何内容,成功登录后它会立即打开.
如何在用Instagram登录后将用户重定向到应用程序.
ps我使用这个库来缓解事情.
提前致谢.
这是我到目前为止所发现的。我已经解决了这个问题,让该应用程序可以在 iPhone 上运行。但是,此解决方案不允许我在应用程序商店中提交应用程序,正如您将继续阅读的那样。我已经用 Instagram 提交了一个错误,不知道需要多长时间。
我建议大家访问此链接并“报告问题”:
https://www.instagram.com/developer/clients/manage/
我在应用程序商店中有一个应用程序几个月了,没有出现任何问题。然而,自6月19日起,所有尝试验证的用户在使用IG帐户登录后都会收到带有“400 Bad Request”的白页。
这个问题很常见,您将在此堆栈溢出页面上看到:
Instagram API 阻止成功登录后重定向到 iOS 应用程序并出现 400 错误请求错误
自 6 月 19 日以来,谷歌也向许多用户展示了同样的问题。
我发现我们使用的旧重定向 URI:
myappname://
Run Code Online (Sandbox Code Playgroud)
是问题所在。
如果我们将此重定向 URI 更改为:
http://myappname
Run Code Online (Sandbox Code Playgroud)
或者
https://myappname
Run Code Online (Sandbox Code Playgroud)
这一切开始正常工作,我们获得了访问令牌。
然而,根据 RFC1738,这不是 iOS 开发中使用的 URL 方案的有效格式。
因此,当我们将应用程序提交到应用程序商店时,我们会遇到错误:
ERROR ITMS-90158: "The following URL schemes found in your app are not in the correct format: [https: //myappname]. URL schemes need to begin with an alphabetic character, and be comprised of alphanumeric characters, the period, the hyphen or the plus sign only. Please see RFC1738 for more detail."
ERROR ITMS-90158: "The following URL schemes found in your app are not in the correct format: [https: //myappname]. URL schemes need to begin with an alphabetic character, and be comprised of alphanumeric characters, the period, the hyphen or the plus sign only. Please see RFC1738 for more detail."
Run Code Online (Sandbox Code Playgroud)
所以我们无法使用此解决方案提交到应用商店。
因此,除非 Instagram 采取措施将其恢复到原来的样子,否则我们就会陷入困境:(
| 归档时间: |
|
| 查看次数: |
2840 次 |
| 最近记录: |