Facebook like button showing in Firefox but not showing in IE

CubanX picture CubanX · Jun 2, 2010 · Viewed 17.8k times · Source

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?

Answer

0bj3ct.m3th0d picture 0bj3ct.m3th0d · Jun 2, 2010

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.