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

vectoroc - November 11, 2009 - 22:56

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

Dave Cohen - November 11, 2009 - 20:52

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

vectoroc - November 11, 2009 - 23:00

I use Safary, FF. It does not matter.
I believe that this patch is most correct way.

AttachmentSize
patch.diff 840 bytes

#4

Dave Cohen - November 18, 2009 - 02:10
Title:Profile page does not show user picture.» XFBML not rendered.
Status:active» fixed

Thanks for this. Just checked it in along with some event binding improvement.

#5

System Message - December 2, 2009 - 02:20
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.