facebookresizefirefox4autoresize

FB setAutoResize not working on FF


OK, so i've been working on an FB app that changes height on every page. I, obviously used the setAutoResize function in my app layout and i have the following:

window.fbAsyncInit = function() {
    FB.init({appId: '###', status: true, cookie: true, xfbml: true});
    FB.Canvas.setAutoResize();        
};

And it works fine in IE, Safari and Chrome but not in FF4. I also used:

window.setTimeout(function() {
    FB.Canvas.setSize({height: $('body').height()});                
}, 1000);

but no luck either. Does anyone experienced this before? tnx in advance. Mark


Solution

  • This sounds like it might be a bug? Check out: http://bugs.developers.facebook.net/show_bug.cgi?id=10889

    If this is affecting you vote it up :)