2011-12-10 59 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

這個它應該工作之後。

相關問題