About this article:
Posted in: Learned along the way
By: Blockcoder ( Admin ) / 18.09.2012
Stats: no comments / Views: 445
Tags: facebook, like box, problem
I added the facebook like box to one of my client’s sites and after a couple of hours they called me that it didn’t work with IE – (oh *hit) — why didn’t I saw that coming? How much pain can one browser cause? Okay, I made some effort to conquer this problem.
You need iframe or XFBML to get the like box to appear on your site. IE just doesn’t want to cope with those — without a little magical html -attribute. In order to get everything working is to put the following line within your site’s html tags: “xmlns:fb=”http://www.facebook.com/2008/fbml”“.
This should solve the problem:
<html xmlns:fb="http://www.facebook.com/2008/fbml" xmlns="http://www.w3.org/1999/xhtml" xml:lang="fi-fi" lang="fi-fi" dir="ltr" >
Thank you for reading!