XFBML not rendered.
vectoroc - November 11, 2009 - 19:41
| Project: | Drupal for Facebook |
| Version: | 6.x-2.x-dev |
| Component: | Facebook Connect |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed |
Description
I think fb_connect.js (line 11) contains bug. When document is loaded $(this).html() returns empty and next code will not be called. $(this).children().length works more correctly for me.

#1
btw, I don't understand what is this condition for ? If I load via ajax some like (<fb:profile-pic uid=xxx linked=false></fb:profile-pic>) then code under condition will not be called (even $(this).html() or $(this).children().length)
#2
You may be right that $(this).children().length is better. I'm no javascript expert and I need suggestions like this to get it right.
What browser are you using?
Try adding the following to FB_Connect.init() at the bottom of the file:
// Respect fb_connect classes on new content.$('.fb_connect_show').show();
$('.fb_connect_hide').hide();
Also I didn't understand your comment. you need to use <code> when posting here.
#3
I use Safary, FF. It does not matter.
I believe that this patch is most correct way.
#4
Thanks for this. Just checked it in along with some event binding improvement.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.