Drupal Facebook buttons not Displaying in IE8

Kevin's picture

[b]Q:[/b] I am using the '[url=http://drupal.org/project/fb_social]Facebook social plugins integration[/url]' module to display facebook buttons on my site, but the share button won't display in IE8, they show up fine on FireFox and other browsers, how do I fix this?

[b]A:[/b] It seems that to get the buttons to display correctly in IE you need to add some facebook namespace references to your site's page template (page.tpl.php):

For the facebook buttons to display on IE you need to reference the facebook namspaces in the each page's tag. The folowing references should be added to your site's page template:


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

[b]NB[/b] Before you edit page.tpl.php make sure to back it up, as any mistakes made when editing this file can very easily prevent your website from displaying correctly (or at all)!

So edit your page.tpl.php file (should be found in your theme folder), and spot the line at the top which may look something like this:


xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

You need to add the above two namespace references into the tag, so that the line should now look more like:


xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://opengraphprotocol.org/schema/" xmlns:fb="http://www.facebook.com/2008/fbml" lang="en" xml:lang="en">

This worked a treak for us! For more information have a look here:

http://drupal.org/node/791228#comment-2937266

Share this post: 

Recent Work

Some of Ireland's biggest brands use Pride Design to Design, Build, Manage, Market and Maintain their websites.

Website design for St.Patricks Credit Union in Dublin, Including Loan Calculators.

Website design and development for a step by step wedding and other stationary ordering website f

New website designed and developed for Cork's newest café, which is based in Merchants Quay in Co

New Website design for Pain Relief clinic based in Cork City.

Website for a busy Dublin city centre pub.

We redrafted the Ballymaloe house website to modernise the look and feel of the site and to also

We revamped the website for the Ballymaloe Cookery School.

We revamped the Cully & Sully website onto Drupal.

Rachel Allen was brought up in Dublin and left home at eighteen to study at the world-famous Ball

Clóna Dairy Products are a Dairy Company based in Clonakilty, Co. Cork, since 1919.

Project Arts Centre is Ireland’s leading centre for the presentation and development of c