It would be great if we could add some additional overrides to the settings that get passed to fb.init. I see from the comments that this is in the queue, so in the meantime, I created a small patch which will help to address a bug with the facebook sdk.

Due to an apparent bug in the facebook sdk, it seems that some pages in IE (definitely IE 8) make duplicate request to the server.

First the real request will be made just as expected, but if you trace through using a tool such as charles, you'll find that a second request was made, appending the parameter 'fb_xd_fragment'. This apparently has something to do with crossdomain script handling

While this appears to be an ongoing issue, one solution that seems to have worked for me is to do as a post by a facebook dev suggested, and create a channel.html file, and add this into the FB.init settings.

In order to accomadate this, I've created this small patch which was made against the 3.0 RC 3 release.

http://developers.facebook.com/docs/reference/javascript/FB.init

http://forum.developers.facebook.net/viewtopic.php?pid=234022

CommentFileSizeAuthor
#2 fb_channel.diff2.79 KBDave Cohen
fb.channel.diff1.3 KBsocki

Comments

Dave Cohen’s picture

Version: 6.x-3.0-rc3 » 6.x-3.x-dev

interesting. This reminds me of the old cross-domain receiver file that was a pain. What's in your channel.html file?

I want to make the call to fb_init more customizable, but not sure the best way to do so.

Dave Cohen’s picture

Status: Active » Needs review
StatusFileSize
new2.79 KB

This diff is what I'm thinking of adding. Can you test that it solves your problem?

Serves the channel from drupal by default, but you can override that by setting $conf['fb_js_channel'] in your settings.php.

Dave Cohen’s picture

Status: Needs review » Fixed

I'd still appreciate a review, but I checked in that change for RC5.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.