无效的redirect_uri:应用程序配置不允许给定URL [英] Invalid redirect_uri: Given URL is not allowed by the Application configuration

查看:686
本文介绍了无效的redirect_uri:应用程序配置不允许给定URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的代码:
https://graph.facebook.com/oauth/authorize?client_id=174375686054021&redirect_uri=http://centshark.com/app/fblogin.aspx&scope=offline_access,publish_stream

拥有Facebook登录的网站: http://centshark.com

Website with Facebook Login:http://centshark.com

错误:{error:{message:无效的redirect_uri:应用程序配置不允许给定URL,type :OAuthException,code:191}}

Eror: {"error":{"message":"Invalid redirect_uri: Given URL is not allowed by the Application configuration.","type":"OAuthException","code":191}}

推荐答案

在Facebook App页面中,转到基本选项卡。找到拥有Facebook登录的网站选项。

in the facebook App Page, goto the basic tab. find "Website with Facebook Login" Option.

您会发现网站URL:输入完整的URL(例如 http://Mywebsite.com/MyLogin.aspx )。这是您可以使用呼叫的URL,例如APP ID为123456789

you will find Site URL: input there put the full URL ( for example http://Mywebsite.com/MyLogin.aspx ). this is the URL you can use with the call like If the APP ID is 123456789

https://graph.facebook.com/oauth/authorize?client_id=123456789&redirect_uri=http://Mywebsite/MyLogin。 aspx& scope = publish_actions

这篇关于无效的redirect_uri:应用程序配置不允许给定URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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