Facebook auth.status Change not shoot after dialog in IE

I'm working on a website that uses the FB JS auth SDK, only to sign users when they click on the "Login with Facebook" button, not automatically register users on the download page or whatever. So I have "status" set to false in FB.init.

Below is my implementation:

window.fbAsyncInit = function() {
    FB.init({ 
        appId: '73092430896', 
        status: false, 
        cookie: true, 
        xfbml: true, 
        oauth: true,
    });  

    // listen for and handle auth.statusChange events
    FB.Event.subscribe('auth.statusChange', function(response) {
        console.log('login called.');
        if (response.authResponse) { 
            console.log('repsonse is set.');                    
            if(typeof APPJS.login != 'undefined' && typeof APPJS.login.loginCallback == 'function'){
                console.log('login.callback exists.');
                APPJS.login.loginCallback(response);
            }   
        }
    });            
};

      

The problem is that the auth.statusChange callback does not run in IE (whatever version I've tried), so my users are not logged in via my custom JS function. It works great in Chrome, Safari and Firefox. It has nothing to do with logging in / out of Facebook in any of these browsers, I tried to be logged in and out of Facebook, but IE still fails the callback.

Any help is appreciated.

Update: Adding a channel parameter does not help solve the problem.

+3


source to share


1 answer


See "Checking User State on Page Load" on this page: http://developers.facebook.com/docs/reference/javascript/FB.getLoginStatus/



It says that you must set "status: true" in the call to FB.init.

0


source







All Articles