Resize Facebook Connect login

Can I change the size of the login popup that appears after clicking the facebook login button? I can fully connect and log out of Facebook, but now I need to make the login window a little larger than shown. I use FB.Connect.requireSession when connecting to facebook after pressing the login button. Can anybody help me?

+4
source share
1 answer

According to the Facebook SDK for JavaScript, you can use FB.Canvas.setSize .

When determining the height of the canvas automatically, the height can only be increased, not reduced .

and as an example:

 FB.Canvas.setSize({ width: 640, height: 480 }); 

Or, if you know your content will resize, but you don't know exactly when you can take a look at FB.Canvas.setAutoGrow .

+2
source

All Articles