我使用O2 Qt/C++ lib(建议在http://oauth.net/2/)从默认浏览器使用Facebook,Google等帐户登录我的应用程序。由于某种原因,Facebook在不久前停止了工作。我得到(对不起,无法粘贴图像):Facebook桌面登录OAuth2(重定向到本地)问题
Facebook Login
Given URL is not allowed by the Application configuration
One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
Email or Phone: ________
Password: _________
如果我没有登录到Facebook。如果我已在我的默认浏览器中登录Facebook,一切都可以。
网址是:https://www.facebook.com/dialog/oauth?response_type=token&client_id=my_application_id&redirect_uri=http://127.0.0.1:some_port_1/&scope=email
我所知,在高级选项卡中的OAuth设置,我甚至增加了一些额外的项目有:
Client OAuth Login - YES
Embedded browser OAuth Login - YES
Valid OAuth redirect URIs
https://www.facebook.com/connect/login_success.html
https://my.some_site_1.com/oauth/facebook
https://my.some_site_2.com/oauth/facebook
http://127.0.0.1/
http://127.0.0.1:some_port_1/
https://my.some_site_1.com/oauth/facebook/
https://my.some_site_2.com/oauth/facebook/
还是W/O任何成功。
Facebook是否限制127.0.0.1 redirect_uri或者我缺少重要的东西?我需要任何额外的重定向URI吗?
我真的很感谢任何帮助!