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 和设置弹出窗口大小


- Fetch API 如何获取响应体? 2022-01-01
- addEventListener 在 IE 11 中不起作用 2022-01-01
- Quasar 2+Apollo:错误:找不到ID为默认的Apollo客户端。如果您在组件设置之外,请使用ProvideApolloClient() 2022-01-01
- 使用RSelum从网站(报纸档案)中抓取多个网页 2022-09-06
- Css:将嵌套元素定位在父元素边界之外一点 2022-09-07
- Flexslider 箭头未正确显示 2022-01-01
- 400或500级别的HTTP响应 2022-01-01
- 如何使用 JSON 格式的 jQuery AJAX 从 .cfm 页面输出查 2022-01-01
- 失败的 Canvas 360 jquery 插件 2022-01-01
- CSS媒体查询(最大高度)不起作用,但为什么? 2022-01-01