如何解决auth错误“重定向URI与注册的重定向URI”不匹配在IOS? [英] How to solve auth Error "Redirect URI does not match registered redirect URI" in IOS?

查看:2128
本文介绍了如何解决auth错误“重定向URI与注册的重定向URI”不匹配在IOS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为我的iphone应用程序从Instagram开发者页面注册一个新客户端。但我有问题。我创建了客户端ID,但是它给出了这个错误:

I am working register a new client from instagram developer page for my iphone app.But I have problem.I created client id but it given this error :


{code:400,error_type:OAuthException,error_message:重定向URI与注册的重定向URI不匹配}

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

实际上,我在ios代码中用于连接此链接:

Actually,I used for connection this link in ios code:


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

因此,我找到了示例客户端ID。当我尝试在此链接上对客户端ID进行采样时:

So,I found sample Client ID.When I've tried to sample Client ID on this link:


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

它在相同的代码上运作良好。

it's working good on same code.

但当ı创建客户端ID时,它无法工作。我检查了一个链接。但是,我没有解决这个错误。

But when ı created Client ID.It is not working.I checked a link.But,I didn't solve this error.

有人可以指导我如何生成重定向新的客户?或者我的问题是什么?

Can someone guide me on how to generate Redirect a new client? or What is the my problem ?

推荐答案

用Instagram注册你的应用程序(生成client_id)。你必须在那里设置redirect_uri。

While registering your app with Instagram(to generate client_id). You have to set the redirect_uri there.

请检查图像并按我的方式进行配置。

Please check the image and configure as I did.

这篇关于如何解决auth错误“重定向URI与注册的重定向URI”不匹配在IOS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆