Facebook login onlogin callback triggered twice

Viewed 1268

I am trying to integrate facebook login on a website. Code used :

<fb:login-button autologoutlink="true" scope="read_stream,publish_stream,offline_access,email,user_birthday,status_update,user_status,user_hometown,user_location" onlogin="checkFBLoginStatus();">Sign in with Facebook</fb:login-button>

When the user is already logged in to facebook and click on the button generated by this code , the function specified in the onlogin even is triggered twice.

in fbinit i have

        status     : true, // check login status
        cookie     : true, // enable cookies to allow the server to access the session
        xfbml      : true,  // parse XFBML
        oauth: true

and function checkFBLoginStatus contains just an alert statement

0 Answers
Related