Reputation: 2174
I have a facebook application developed with a mixture of the PHP, JS, and AS3 SDKs.
The application works perfectly on IE but it hangs on other browsers (FF,Chrome)
IN FF debug console I see an error message:
Empty string passed to getElementById(). swf is null (92 out of range 62)
This error happens just after calling:
Facebook.init( APP_ID, _handleInit );
The callback it's never fired.
Any ideas why?
Upvotes: 0
Views: 512
Reputation: 2174
Ok, I found the culprit.
The Facebook api needs a reference to the embedded SWF object. Since I was using SWFObject, I needed to pass two parameters: id for IE and name for Chrome/Mozilla Browsers.
Simple as that...
Upvotes: 1