Javascript: mi método fbAsyncInit () nunca se llama
Estoy copiando el código directamente deesta págin en el sitio web de desarrolladores de Facebook y el método fbAsyncInit () nunca se activa. También he leídoesta págin, Modifiqué el código de diferentes maneras y no puedo hacer que el método se active. ¿Tus pensamientos
Además, por lo que vale, cuando intento ejecutar este código y Chrome (en Mac) y ejecuto Firebug lite, aparece un error que dice "Firebug Lite no se puede cargar en esta página"
Aquí está el código ...
<html>
<head>
</head>
<body>
<div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({
appId : '1234567890', // App ID
channelUrl : '//localhost/test.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
alert("this statement never gets called either");
};
// Load the SDK Asynchronously
(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>
</script>
</body>
</html>