Findings

useful facts 

How to solve Facebook FB.loader problem

Posted on January 14, 2010, viewed
times and favorited 0 times

I have a problem with the FB button share, where I have this code

Share
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

The error message with internet explorer is:

FB.loader is null or not an object.
http://static.ak.fbcdn.net/connect.php/js/FB.Share
FB.Share                                               line:15
Code:0                                                 Char:1

or in firebug console:

FB.Loader is undefined
        FB.Share()FB.Share (line 15)
        [Break on this error] FB.Loader.onScriptLoaded(["FB.Share","FB.SharePro"]);

 

Solution:

On looking the code, there is a FB.Loader is missing. You have to add another script to load "FB.Loader" function.

Share
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Loader" type="text/javascript"></script>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>

You Might Also Like Our Friends' Posts

Comments (4)

Jan 15, 2010
Duncanma said...
thanks for the FB.Loader fix, seemed to be hitting a lot of people
Jan 16, 2010
ArtemR said...
Thanks for the fix - I was getting the same problem.
Jan 19, 2010
 said...
Thanks for the help. quick and easy fix.
Sep 11, 2010
Amar Mohandas said...
This still wont work for me :( Anyone having any detailed instructions? Just cant get the proper fb share button with the count on my posterous blog!

Leave a comment...