jeudi 26 février 2015

Explicitly set the size of FB.Login()?

Currently I'm using the following function to instantiate a login dialog using Facebook Javascript SDK



function fbLogin() {
FB.login(function (response) {
if (response.status === 'connected') {
// Logged into your app and Facebook.
window.top.location = "http://ift.tt/1BAb2BC";
} else if (response.status === 'not_authorized') {
// The person is logged into Facebook, but not your app.
alert("2");
} else {
// The person is not logged into Facebook, so we're not sure if
// they are logged into this app or not.
alert("3");
}
},{scope: 'email'});
}


Is there any way to control the size of the popup that appears ? say for example, 500 x 500 px ?


Thanks


Aucun commentaire:

Enregistrer un commentaire