Facebook OAuth redirect_uri问题'应用程序配置不允许给定URL“。 [英] Facebook OAuth redirect_uri problem 'Given URL is not permitted by the application configuration.'

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

问题描述

当通过重定向到以下网址要求授权时:

When asking for authorisation by redirecting to the following url:

https://graph.facebook.com/oauth/authorize?client_id=...&scope=email,offline_access&redirect_uri=http%3A%2F%2Flocalhost%2Flogin%2Findex.php%3Fcallback%3Dfacebook

Facebook返回'无效的redirect_uri给定的URL不允许应用程序配置'。

Facebook returns 'Invalid redirect_uri Given URL is not permitted by the application configuration.'

可能是因为我的应用程序已注册 http://syncacity.com 上的应用程序配置。但是,twitter允许我重定向到任何url,为什么Facebook呜咽?

Possibly because my application is registered with http://syncacity.com on the application configuration. But still, twitter allows me to redirect to any url, so why is facebook whining?

我很感激你的想法:)

推荐答案

为什么不只是编辑你的主机文件,并将你的域名指向你的本地ip,那么你只需要在做任何事情之前切换dev box主机。

why not just edit your hosts file and point your domain to your local ip then you only need to switch the dev box hosts before doing anything.

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

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