personal blog

Posts Tagged "facebook"

Solving problem with FB.Connect.showFeedDialog() empty popup in Firefox

Posted by on Jun 25, 2009 in JavaScript | 1 comment

I’ve just found out a solution to an issue that bogged me for last few hours and I just like to share it here… Basically if you’re developing an Facebook Connect app and using FB.Connect.showFeedDialog() inside a callback from some other AJAX call you may notice that under Firefox you may get a blank popup box from Facebook.

Without going into more details, as no sources I’ve seen managed to get into the real reasons why this is happening, here’s the solution:

Wrap your FB.Connect.showFeedDialog() call in setTimeout callback, like this:

setTimeout(function(){
    FB.Connect.showFeedDialog(template_id, params)
}, 0);

Found the solution to this here.


Read More