fb.init events when initialized
Posted
by
oshafran
on Stack Overflow
See other posts from Stack Overflow
or by oshafran
Published on 2010-12-22T14:49:45Z
Indexed on
2010/12/22
14:54 UTC
Read the original article
Hit count: 250
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
© Stack Overflow or respective owner