2011-12-10 61 views
1

当点击登录时,一个名为login()的函数和请求Facebook的权限。然而,尽管它可以在Chrome和Opera上运行,但它在Firefox上并没有做任何事情。FB.login()不适用于Firefox?

FB.login(function(response) { 
    if (response.authResponse) { 
     window.location = "<?=$loginUrl?>"; 
     accessToken = response.authResponse.accessToken; 
     } 
    }, {scope: 'email,user_birthday'}); 

我已在此代码之前添加了一个提醒,并且它在单击登录按钮时运行。所以这个问题完全是在facebook的登录代码中。

你可以看到http://justwalk.it/login

我的登录页面,也没有“一个弹出窗口被封锁”或诸如此类的警告。有人经历过这个?什么原因可能导致它无法在Firefox上运行?

+1

如果你打开FireBug,在网络面板中,你是否看到一个被阻止的请求(红色文本)。另外,您确定在developers.facebook.com网站上的回拨网址设置正确吗? –

+0

它在您的网站的Firefox中适用于我。 – dmirkitanov

回答

-1

Firefox无法在www.facebook.com上建立与服务器的连接。

The site could be temporarily unavailable or too busy. Try again in a few moments. 
If you are unable to load any pages, check your computer's network connection. 
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web. 
0

这与您的网络和Firefox证书有关。

打开Firefox和搜索选项卡类型about:config,点击我接受风险并找到偏好security.enterprise_roots.enabled并将其设置为true

这个它应该工作之后。

相关问题