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

查看:24
本文介绍了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天全站免登陆