center align facebook login window

I am trying to implement Facebook login in my application using the Javascript SDK. I am using the following js:

$("#loginWithFacebook").click(function () {
    FB.login(function (response) {
        if (response.status === 'connected') {
            FB.api('/me', function (user_details) {
               // do something with the user_details
            });
        }
    });

The problem is when I call FB.login, it opens the Facebook login window to the extreme right, but I want it to be center aligned. Any way to fix this issue?


Source: facebook

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.