Używam tego samego kodu przewidzianego w konsoli hereFacebook SDK nie ładuje ... all.js GET braku
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
console.log('got here');
FB.init({
appId : '197112467099018', // App ID
channelUrl : '//WWW.MYDOMAIN.COM/channel.html', // Channel File
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
// Additional initialization code here
};
// Load the SDK Asynchronously
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
</script>
Chrome mówi mi skrypt udało się załadować (GET nie powiodło się) z 2 błędy, które są oznakowane (funkcja anonimowa)
linie wskazuje jako błędy są:
ref.parentNode.insertBefore(js, ref);
}(document));
Czy ktoś może mi pomóc dowiedzieć się, co jest nie tak z tymi liniami?
Dla mnie to był AdBlock Plus – Narayana
Zatrzymałem prywatne przeglądanie w kaspersky internet security rozwiązałem mój problem –