为什么我在Facebook登录页面上收到此警告消息?

时间:2015-02-07 16:39:41

标签: facebook facebook-javascript-sdk

我正在首次在本地部署的网络应用上试用Facebook登录API。

我使用snippet in their documentation初始化API并在我的HTML页面上有一个按钮

<button type="button" onclick="fbLogin()">

fbLogin()

的位置
function fbLogin() {
    FB.login(function(response) {
        console.log(response);

        // handle the response
        if (response.status === 'connected') {
            // Logged into your app and Facebook.
        } else if (response.status === 'not_authorized') {
            // The person is logged into Facebook, but not your app.
        } else {
            // The person is not logged into Facebook, so we're not sure if
            // they are logged into this app or not.
        }
    }, {scope: 'public_profile,email,user_friends'}); // TODO: If the user doens't provide the email address prompt it for email. Also, don't ask for friend list when its a simple logout maybe? Specify why it's needed first. If it doesn't provide the friends access, re-prompt the request, explaining him it can have a more social experience if he accepts (can see when its friends win and congratulate with them, (we can also prom him to invite some friends))
}

当我尝试登录消息时 “您在大型浏览器窗口或标签页中使用'popup'显示类型。为了获得更好的用户体验,请使用我们的JavaScript SDK显示此对话框,而不指定显式显示类型.SDK将为每个环境选择最佳显示类型或者,如果您有特殊要求阻止您使用SDK,请在window.open()调用上设置高度和宽度以正确调整此对话框的大小。此消息仅对您的应用程序的开发人员可见。“ 出现。 Screenshot

正如您所看到的,我没有指定任何特定的显示类型;所以我真的不知道如何处理这条消息。

其他Google条目没有解决此问题的方法。

我需要采取什么行动才能删除它?

0 个答案:

没有答案
相关问题