I am seeing an error being reported with different broswers using this plugin.

In the Chrome Console, I get these error messages:

The "fb-root" div has not been created, auto-creating    FB.Share:56
FB.getLoginStatus() called before calling FB.init().           FB.Share:54

In Firefox console, I see this error:
FB.getLoginStatus() called before calling FB.init().

In IE 8, I see this error:

SCRIPT438: Object doesn't support property or method 'forEach' 
FB.Edgar._stubs.forEach(function(b){a(b,FB.Edgar._stubFunction);})

The file that all these errors point to are in:
http://static.ak.fbcdn.net/connect.php/js/FB.Share

While I realize this is an external script and you don't have control over it, I am wondering if there might be a solution as to the way in which it's handled by Drupal and this module.

Comments

kongal’s picture

I'm having the same problem too and I receive the same errors. Share on Facebook button does not load on IE 8.
Have you managed to find a solution to this?

danny englander’s picture

Hi Kongal, I still do not have any solutions or a workaround.

simon georges’s picture

Is it still the case with the latest -dev version of the module?

TheCrow’s picture

following the facebook like button creator it doesn't require a fb-root div with an iframe tag... will try to inject it and see what happens.

TheCrow’s picture

Title: Error in various browsers » Facebook Like: The "fb-root" div has not been created.
Status: Active » Fixed

This should be fixed in the dev version for Facebook Like, i fixed it also for the XFBML version of Facebook Share which will be committed soon with this: #1688494: "Service Links Field Share on Facebook" No longer displays Picture or links to article..

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

more info