In my site I\'m using asynchronous loading of the Facebook JS SDK. To actually set it up I use the standard FB.init inside of window.fbAsyncInit function.
However the is
You can use this instead to check if you already have a fbAsyncInit and chain it toghether in that case:
var oldCB = window.fbAsyncInit; window.fbAsyncInit = function(){ if(typeof oldCB === 'function'){ oldCB(); } //Do Something else here };