FB.Loader is null or not an object error fix
Pieter posted in "Hacks & tricks". 14 years, 3 months ago
If you’re a webmaster or blogger and recently, like me, noticed an FB.Loader error when browsing your website in Internet Explorer, then this fix is for you. The problem is caused by the implementation of the Facebook Share button on your web pages, and the IE error report looks like this:
Message: ‘FB.Loader’ is null or not an object
Line: 15
Char: 1
Code: 0
URI: http://static.ak.fbcdn.net/connect.php/js/FB.Share
or in Firebug:
FB.Loader is undefined
FB.Share()FB.Share (line 15)
[Break on this error] FB.Loader.onScriptLoaded([“FB.Share”,”FB.SharePro”])
The error dictates the solution: you need to call FB.Loader first. Look for the line below in your source, or in the Facebook Share button (WordPress) plug-in source:
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
On the row right above that code, add the following:
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Loader" type="text/javascript"></script>
Save the changes and update the file on your server. Good luck!