FB Connect not working in IE? Fix your xd_receiver.html's HTML namespace extension

<html xmlns="http://www.w3.org/1999/xhtml" 
    xmlns:fb="http://www.facebook.com/2008/fbml">

Internet Explorer 7 is very finicky with its processing of custom tags.

If you're using Facebooker, it actually currently does NOT include this in the html tag of the xd_receiver.html -- so if you try to log into fbconnect using IE7 on an app with the default generated file, it will just fail with a white screen in the login window.

TRICKY. But Forums and Google Search to the rescue once again.

I'm trying to blog these little stumbling blocks back because it'll help Google reinforce the right links just a bit more. Programmer solidarity =)

Posted

2 comments

Jun 22, 2010
railsdev said...
hey thanks a lot for this post, I tried what you said but I still get the blank screen, even on IE8

i'm using facebooker in my rails app and my xd_receiver.html file looks like this:

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">





any ideas?

Jun 22, 2010
railsdev said...
seems like the html text got ignored/parsed out, so here it is again:

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml"

head
title Cross-Domain Receiver Page /title
/head
body
script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.js" type="text/javascript" /script
/body
/html

Leave a comment...