fb.init events when initialized
- by oshafran
Hi
I have this code
window.fbAsyncInit = function() {
FB.init({
appId: 'balblablablbal',
status: true,
cookie: true,
xfbml: false
});
};
(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
} ());
I would like to do something only after those JSs have been loaded (i.e. hook on FB.init event)
How can I do that
thanks