0

我在頁面頂部顯示此內容,但仍然收到出現錯誤。請稍後再試。我的應用程序在http://reviewsie.com。我的appId是正確的,已經複製並粘貼了三次。Facebook身份驗證發生錯誤,請稍後重試

<div id="fb-root"></div> 
<fb:login-button></fb:login-button> 

<script> 
    window.fbAsyncInit = function() 
{ 
     FB.init({ 
      appId  : '215682891854809', 
      status  : true, 
      cookie  : true, 
      xfbml  : true, 
      oauth  : true 
     }); 

     FB.Event.subscribe('auth.login', function(response) 
    { 
      window.location.reload(); 
     }); 
    }; 

    (function(d) 
{ 
     var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;} 
     js = d.createElement('script'); js.id = id; js.async = true; 
     js.src = "//connect.facebook.net/en_US/all.js"; 
     d.getElementsByTagName('head')[0].appendChild(js); 
    }(document)); 
</script> 

回答

1

你在你的HTML聲明中加入FB命名空間(因爲你正在使用<fb:login-button />

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://ogp.me/ns/fb#">

(我懷疑這將解決這個問題,但它是值得一試。)

+0

做了一些愚蠢的事,有一個遺留代碼與fb根再次申報!!! – cdub 2012-02-07 08:01:38

+0

這樣做;-) – 2012-02-07 08:03:01

相關問題