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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | fb_channel.diff | 2.79 KB | Dave Cohen |
| fb.channel.diff | 1.3 KB | socki |
Comments
Comment #1
Dave Cohen commentedinteresting. 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.
Comment #2
Dave Cohen commentedThis 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.
Comment #3
Dave Cohen commentedI'd still appreciate a review, but I checked in that change for RC5.