无法使用facebook的api登录到网站 [英] Can't login to website using facebook's api's
本文介绍了无法使用facebook的api登录到网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是一个截图在新服务器上发生的情况:
较大的版本 here 。
我已经检查过apache的error.log文件,我看不到任何错误消息。
为什么这会发生在新的服务器上? p>
解决方案
有很多原因
- 域匹配
- 在代码和设置中检查 urls 匹配
- 检查登录urls 以进行身份验证匹配
- 检查应用程序密钥未更改
- 检查沙箱模式是否关闭
- 检查从开发者帐户访问应用程序,而不是测试帐户
- 检查您正在将用户访问的URL是否具有所有必需的数据。
I have some php code which worked nicely on my old server. I have moved the php code to a new server, and now I can no longer use the facebook api's to log into my site using a facebook login.
Here is a screenshot of what happens on the new server:
Larger version here.
I have checked apache's error.log file and I see no error messages.
Why would this be happening on a new server?
解决方案
There are many reasons for this
- check that domains match in code and in settings
- check that urls match in code and in settings
- check that login urls for authentication match
- check that the app secret has not changed
- check that sandbox mode is off
- check for access of app from a developer account and not a testing account
- check if the url you are taking the user to, has all the required data.
这篇关于无法使用facebook的api登录到网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文