admin管理员组文章数量:1327077
I am using FB.ui with the display parameter set to popup.
When the method is 'stream.publish', it autoresizes when the content is loaded. However, when using 'fbml.dialog' (in order to display a multi-friend selector) it shows a size that I'm not able to change (and the content is displayed cropped).
I have tried with the following approaches, with no luck:
FB.ui({
method: 'fbml.dialog',
size: {width: 800, height: 500},
...
FB.ui({
method: 'fbml.dialog',
width: 800,
height: 500,
...
Also I've been looking at the API source code, and it declares the method this way:
Method declaration:
'fbml.dialog': {
size : { width: 575, height: 300 },
url : 'render_fbml.php',
loggedOutIframe : true
}...
Functions that executes the methods:
// the basic call data
var call = {
cb : cb,
id : id,
size : method.size || {},
url : FB._domain.www + method.url,
params : params
};
Any help would be much appreciated...
I am using FB.ui with the display parameter set to popup.
When the method is 'stream.publish', it autoresizes when the content is loaded. However, when using 'fbml.dialog' (in order to display a multi-friend selector) it shows a size that I'm not able to change (and the content is displayed cropped).
I have tried with the following approaches, with no luck:
FB.ui({
method: 'fbml.dialog',
size: {width: 800, height: 500},
...
FB.ui({
method: 'fbml.dialog',
width: 800,
height: 500,
...
Also I've been looking at the API source code, and it declares the method this way:
Method declaration:
'fbml.dialog': {
size : { width: 575, height: 300 },
url : 'render_fbml.php',
loggedOutIframe : true
}...
Functions that executes the methods:
// the basic call data
var call = {
cb : cb,
id : id,
size : method.size || {},
url : FB._domain.www + method.url,
params : params
};
Any help would be much appreciated...
Share Improve this question asked Jun 1, 2010 at 9:20 manuelpedreramanuelpedrera 411 gold badge1 silver badge2 bronze badges3 Answers
Reset to default 2I've used a bit of a hacky workaround until they fix this:
http://pastebin./Qwu0bEed
if you change it to
display: 'dialog'
it will resize correctly
Use
FB.UIServer.Methods["fbml.dialog"].size = {width:640, height:400};
本文标签: javascriptFBui and setting popup sizeStack Overflow
版权声明:本文标题:javascript - FB.ui and setting popup size - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742212057a2433892.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论