问题描述
从今天开始,我们将在auth对话框中收到带有以下消息的开发人员警告:
starting today we receive developer warnings in the auth dialog with the following message:
我们有以下情况:
- 使用javascript,我们打开一个新的弹出窗口
- 通过Facebook的PHP-SDK方法getLoginUrl设置弹出窗口的src
- 弹出窗口本身的大小为400px x 580px
PHP-SDK 本身引用了正确的用法自己的代码中的"display = popup":
The PHP-SDK itself references the proper use of "display=popup" within it's own code:
JS-SDK文档说,打开的弹出窗口的最大大小应为400x580:
The JS-SDK documentation says, that the maximum-size of the opened popup should be 400x580:
因此,总而言之:根据文档,上面的实现应该可以.还有其他人对此警告或对此有解决方案吗?
So, to sum up: According to the docs, the implementation above should be ok. Is anyone else having this warning or a solution for this?
推荐答案
JS-SDK文档指出,浏览器弹出窗口应不大于400px x 580px".他们没有指定的意思是它们的高度为400px,宽度为580px.
The JS-SDK documentation says the browser popup should be "no bigger than 400px by 580px". What they don't specify is that they mean 400px tall by 580px wide.
我在275高乘875宽的弹出式身份验证对话框中看到开发人员警告.我的弹出窗口没有显示警告,该弹出窗口高400乘580宽.
I see the developer warning in my popup auth dialogs that are 275 tall by 875 wide. I do not see the warning in my popups that are 400 tall by 580 wide.
您的图像表明您的弹出窗口高630宽446.任何对规范的阅读都太大了.
Your image suggests your popup is 630 high by 446 wide. Too big by any reading of the specification.
这篇关于Facebook Auth对话框:有关使用“显示"的开发人员警告.输入"popup"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!