Home » Hacks & tricks

FB.Loader is null or not an object error fix




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!

Like Reface.me on Facebook




Side notes

FB.Loader is null or not an object error fix Posted by on January 19, 2010 at 9:56 PM. Use this trackback if you're linking this story.

Currently trending:
Facebook Timeline Hacks

Welcome to reface.me!

Recent comments

Write for us!

Who wants to become a reface.me blogger?

Check out our t-shirts!

*Pssst!* Just so you know, yes, we also do custom designs. Get in touch!
facebook t-shirts
reface.me featured on FOX News

What’s reface.me?

 



Receive e-mail updates from Reface.me:





Facebook Like Stamps