FB not defined error in Firefox 4

This error was recently trimmed after installing Firefox 4.

I am using asynchronous loading of the FB SDK. Put the fb-root div right after the tag.

I call FB.Canvas.setAutoResize();in $(document).ready(). I also added the following html tag:

<html xmlns="http://www.w3.org/1999/xhtml"
 xmlns:fb="http://www.facebook.com/2008/fbml">

What am I missing?

Try it here: http://apps.facebook.com/stockadda/

0
source share
1 answer

$(document).readydoes not guarantee that the FB SDK is loaded. You need to make sure that any object calls FBare made when the SDK loads, there seems to be a callback for asynchronous loading.

+1
source

All Articles