FB.ui and setting popup size(FB.ui 和设置弹出窗口大小)
问题描述
我正在使用 FB.ui 并将显示参数设置为弹出.
I am using FB.ui with the display parameter set to popup.
当方法是stream.publish"时,它会在加载内容时自动调整大小.但是,当使用fbml.dialog"(为了显示多朋友选择器)时,它会显示我无法更改的大小(并且显示的内容会被裁剪).
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,
...
我也一直在查看 API 源代码,它以这种方式声明方法:
Also I've been looking at the API source code, and it declares the method this way:
方法声明:
'fbml.dialog': {
size : { width: 575, height: 300 },
url : 'render_fbml.php',
loggedOutIframe : true
}...
执行方法的函数:
// 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...
推荐答案
在他们解决这个问题之前,我使用了一些 hacky 解决方法:
I've used a bit of a hacky workaround until they fix this:
http://pastebin.com/Qwu0bEed
这篇关于FB.ui 和设置弹出窗口大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:FB.ui 和设置弹出窗口大小


基础教程推荐
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- 如何在特定日期之前获取消息? 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01