views:

649

answers:

2

Hello all,

I have a Facebook like button on my page using the XBFML tag. I think the code is working, because it works in Firefox without a problem.

But in IE 8 (running in IE 7 compliant mode), the button does not show at all.

If I switch it all to the iFrame version of the like button it all works. But when I go with the XBFML tag it does not work.

Anyone run into anything like this?

+5  A: 

Try adding the xmlns attribute to the HTML document for the FB namespace:

xmlns:fb="http://www.facebook.com/2008/fbml" xmlns:og="http://opengraphprotocol.org/schema/"

This is another case where Firefox is being too forgiving vs IE.

0bj3ct.m3th0d
Thanks, this worked a treat!
CubanX
worked perfectly
Brian Wigginton
+2  A: 

the attribute: xmlns:fb="http://www.facebook.com/2008/fbml" is mentioned as a "must be used" in the Facebook Connect documentation. Some pointers here http://digitizor.com/2010/07/06/fix-facebook-connect-xfbml-not-showing-ie/

dkd903
+1 for link and simple explanation
Leftium

related questions