This error recently cropped after I installed Firefox 4.
I am using asynchronous loading of FB SDK. Have placed the fb-root div just after tag.
I call FB.Canvas.setAutoResize(); in the $(document).ready(). I have added the following html tag too :
<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/
$(document).readydoesn’t assure you that the FB SDK has been loaded. You should make sure any calls to theFBobject are performed when the SDK has been loaded, presumably there’s a callback for the asynch load.