這是我的第一個應用程序。登錄按鈕不適用於我的應用程序。它被顯示,但是當我點擊它時,沒有任何反應。登錄按鈕不能在IE7,8,9上工作
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/">
....
<body>
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : '306025322809511',
channel : 'http://koreplayer.fb.levelkro.com/channel.php',
status : true,
cookie : true,
xfbml : true,
oauth : true,
});
FB.Event.subscribe('auth.login', function() {
if (response.authResponse) {
window.location = "/manage.php";
}
});
};
(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/fr_FR/all.js";
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
</script>
....
<div class="fb-login-button">Se connecter en utilisant Facebook</div>
我嘗試過使用通道參數,但沒有通道顯示樣式。
控制檯中是否顯示任何內容?按F12查看控制檯。 – Sampson
控制檯只會說「FB沒有定義」,如果Y運行調試器,我可以登錄。 – levelKro