Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Facebook like button showing in Firefox but not showing in IE

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?

like image 493
CubanX Avatar asked Jun 02 '10 13:06

CubanX


2 Answers

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.

like image 110
0bj3ct.m3th0d Avatar answered Oct 27 '22 15:10

0bj3ct.m3th0d


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.

like image 39
Deb Avatar answered Oct 27 '22 15:10

Deb