Facebook API目前有问题吗?


Is there something wrong with Facebook API currently?

>有人注意到他们的登录按钮有问题吗?我的代码正在工作,突然它们今天开始表现得很奇怪,我没有修改任何代码。这是我的代码,可帮助您与我一起调试我可能出了什么问题?

我在标题上有这个:

<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
    FB.init({
    appId: '<?php echo $sofa['fbappid']; ?>',
            status: false,
            cookie: true,
            xfbml: true,
            oauth: true
    });
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
function Facebook_login () {
    $("p.form-result").empty();
    FB.getLoginStatus(function(response) {
        if (response.status === 'connected') {
            $.ajax({
                url: '<?php bloginfo('template_directory'); ?>/ajax/fbconnect.php',
                type: 'POST',
                dataType: 'json',
                success: function(data){
                    $('.loading').remove();
                    $('input:submit').attr("disabled", false);
                    if (data.status) {
                        $("p.form-result").html('<span class="success">' + data.message + '</span>');
                        window.setTimeout(function(){location.reload()},3000);
                    }
                }
            });
        }
    });
};
</script>

我有这个在哪里我的按钮(脸书连接)

<div class="form-fbconnect"><div class="fb-login-button" onlogin="Facebook_login()" scope="email"><?php _e('Connect with Facebook','sofa'); ?></div></div>

有些东西看起来不对劲。 按钮以有趣的方式加载,即使它确实登录用户,它也不会像以前那样工作。这是怎么回事?

提前谢谢。

您可以在

https://developers.facebook.com/live_status 查看Facebook平台的当前状态。