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

相关问题