Fb.UI对话框显示在弹出窗口中,而不是iframe中 [英] Fb.UI Dialogs are displaying in Popups instead of an iframe

查看:76
本文介绍了Fb.UI对话框显示在弹出窗口中,而不是iframe中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为本机FB应用程序实现一些Facebook弹出窗口,但是在弹出对话框的方式上却出现不一致的结果.例如,当我单击某个按钮时,它称为:

I am attempting to implement some Facebook popups for my native FB app but I am having inconsistent results when it comes to how the dialog boxes pop up. For instance, when I click on a certain button this is called:

    FB.ui({
        method:'apprequests',
        message:'Check out this app!',
        data:'123456789',
        title:'Awesome!'
    },
    function(response) {
        if(response != null){
            //other stuff
        }
    });

在Safari,Opera,Chrome和IE中,此功能可以按预期工作,并且弹出窗口显示在我应用程序的iframe中.但是,在Firefox 6中,它是在单独的弹出窗口中弹出的.这是我过去遇到的问题,但是可以通过实现OAuth来解决.我的OAuth网址是通过以下方式形成的:

In Safari, Opera, Chrome, and IE this works as expected and the popup appears in an iframe over my app. In Firefox 6, however, it is popping up in a separate popup window. This is something I had an issue with in the past but solved by implementing OAuth. My OAuth url is formed in the following way:

"http://www.facebook.com/dialog/oauth/?scope=user_birthday,email&client_id=" . APP_ID . "&redirect_uri=" . urlencode(FB_URL)

今天有什么需要我进一步许可的更改吗?谢谢.

Has something changed today that I need to ask for further permissions? Thank you.

更新 我想补充一点,最终证明Facebook没有错.显然,我的FFox个人资料中设置了错误的内容,并将其重置可以解决此问题.

UPDATE I wanted to add to this that ultimately it proved to be nothing wrong with Facebook. Apparently something was set improperly in my FFox profile and resetting it fixed the issue.

推荐答案

尝试为此指南,但是当您需要提示用户扩展权限时,通常不能使用iframe.

Try setting display="iframe" per this guide but when you need to prompt users for extended permissions you normally can't use iframe.

这篇关于Fb.UI对话框显示在弹出窗口中,而不是iframe中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆