开发者

Resizing Facebook Connect login pop up window

开发者 https://www.devze.com 2022-12-12 11:25 出处:网络
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 righ

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?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号