Facebook身份验证发生了错误,请稍后再试

时间:2012-02-07 07:48:21

标签: javascript facebook facebook-authentication facebook-login

我在页面顶部有这个,但是一直发生错误。请稍后再试。我的应用是http://reviewsie.com。我的appId是正确的,已经复制并粘贴了三次。

  <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 个答案:

答案 0 :(得分:1)

您是否在HTML声明中添加了fb名称空间(因为您使用的是<fb:login-button />

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

(我很怀疑这会解决这个问题,但值得一试。)

相关问题