dpd20130 2011-08-30 16:01
浏览 117
已采纳

Fb.UI对话框显示在弹出窗口而不是iframe中

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
        }
    });

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.

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.

  • 写回答

1条回答 默认 最新

  • duan20145 2011-08-30 16:14
    关注

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器