Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Resizing Facebook Connect login pop up window

Tags:

facebook

Is it possible to resize the login pop-up window that shows up after clicking on a facebook login button? I am able to connect and logout completely from Facebook but what i need right now is to make the login pop-up window a little bigger than how it is being shown. I am using FB.Connect.requireSession in connecting to facebook after clicking on a login button. Can anybody help me?

like image 931
Diane Avatar asked Nov 05 '22 18:11

Diane


1 Answers

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

When determining the Canvas Height automatically the height it can only be increased, not decreased.

and as an example:

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

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

like image 125
Natan Streppel Avatar answered Nov 15 '22 12:11

Natan Streppel