首页 文章

“重定向URI与注册的重定向URI不匹配” - 来自iOS应用中的Instagram

提问于
浏览
1

我正在我的iOS应用程序中集成 Instagram .

我的客户ID是: a1eafb31367e435fb541dcfb36d12345

我在iOS应用中使用了redirect uri作为: iga1eafb31367e435fb541dcfb36d12345://authorize

我在Instagram中将redirect uri设置为:(添加了https,因为它是强制性的) https://iga1eafb31367e435fb541dcfb36d12345://authorize

我的请求网址如下:

https://instagram.com/oauth/authorize?response_type=token&redirect_uri=iga1eafb1eafb31367e435fb541dcfb36d12345%3A%2F%2Fauthorize&scope=comments+likes&client_id=a1eafb31367e435fb541dcfb36d12345

但我得到的错误是:

{"code": 400, "error_type": "OAuthException", "error_message": "Redirect URI does not match registered redirect URI"}

我搜索过它但找不到任何解决方案 .

有什么问题?请帮我解决一下 .

提前致谢 .

1 回答

  • 0

    Instagram最近要求重定向URL是有效的URL,因此您需要从最后删除 ://authorise .

    仅供参考,他们还能够使用自定义协议名称,例如 xxxx://redirecturl

相关问题