views:

298

answers:

0

The following code works on all browsers that I've seen so far other than IE6, which gives me no javascript errors or anything but never calls the callback to friends_get. I would have expected that if facebook's javascript code for this was just broken on IE6 i would have been able information about that on the internet, am I just doing something terribly wrong?

FB.init('77777777777777777777777777777777', '/facebook/xd_receiver.htm');
alert('post-init');
FB.ensureInit(function(){
    alert('in ensure init, calling require session');
    FB.Connect.requireSession(function(){
        alert('in require session, calling friends_get');
        FB.Facebook.apiClient.friends_get(null, function(friends_ids) {
            if (friends_ids) {
                alert('got friends: '+friends_ids.join(', '));
            } else {
                alert('got no friends :(');
            }
        });
    }, function(){
        alert('login fail');
    }, true);
    alert('after require session block');
});