Using Jquery to load Facebook fb:profile-pic - not working in IE
- by Gublooo
Hey....
I followed the tips given on
Loading Facebook fb:profile via ajax
In my app, I am basically loading more comments posted by the user via Jquery and along with each comment showing the user's picture using the fb:profile-pic tag
This is a sample of how I'm building the string via Jquery
newcomment += "<fb:profile-pic uid='"+data.fb_userid+"' height='50' width='50' /";
newcomment += ""+data.user_name+": ";
newcomment += ""+data.user_comment+": ";
$("#morecomments").append(newcomment);
So the profile-pic was not being displayed - After reading the above link, I added
if ( FB.XFBML.Host.parseDomTree )
setTimeout( FB.XFBML.Host.parseDomTree, 0 );
The weird thing now is - its working in Chrome and Firefox but not in IE
Cant figure out why.
Any help will be appreciated.
Thanks