草庐IT

php - Facebook OAuth redirect_uri 问题 'Given URL is not permitted by the application configuration.'

coder 2023-06-16 原文

当通过重定向到以下 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。”

可能是因为我的应用程序注册了 http://syncacity.com在应用程序配置上。但是,twitter 允许我重定向到任何 url,那么为什么 facebook 提示呢?

我很感激你的想法:)

最佳答案

为什么不直接编辑你的主机文件并将你的域指向你的本地 ip 然后你只需要在做任何事情之前切换开发框主机。

关于php - Facebook OAuth redirect_uri 问题 'Given URL is not permitted by the application configuration.',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3707738/

有关php - Facebook OAuth redirect_uri 问题 'Given URL is not permitted by the application configuration.'的更多相关文章

随机推荐