Facebook OAuth redirect_uri problem #39;Given URL is not permitted by the application configuration.#39;(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."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Facebook OAuth redirect_uri 问题“应用程序配置不允许给定的 URL."
基础教程推荐
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 如何替换eregi() 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
