应用程序的FB.ui对话框永远挂在iframe模式 [英] FB.ui dialog for apprequest hangs forever in iframe mode

查看:118
本文介绍了应用程序的FB.ui对话框永远挂在iframe模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知怎的,我无法使iframe模式工作在以下代码
对话框显示,但加载挂起永远,没有显示在框
它工作正常显示:弹出

Somehow I can't get the iframe mode to work in the following code The dialog shows up but the loading hangs forever and nothing is displayed in the box it works just fine with display: popup

    FB.getLoginStatus(function(resp) {

      if (resp.status !== 'connected') return;
      FB.ui({
        method: 'apprequests',
        title: 'My title',
        display: 'iframe',
        message: 'My message',
        to: '100003750613973'
      }, function(resp) {
        console.log('emitted request to ', resp.to);
      });
    });


推荐答案

我自己和我的一些同行都看到相同的行为。在我们这种情况下,问题似乎只有在80以外的端口上运行时才会发生。在开发中,我们通常运行在3000端口上,看到你描述的挂起(在我们的例子中使用feed对话框)。 80端口运行时,一切正常。这似乎是最近的一个问题。

Myself and some of my peers are seeing the same behavior. In our case, the problem seems to happen only when running on a port other than 80. E.g. in development, we usually run on port 3000, and see the hang you describe (with the "feed" dialog in our case). When running on port 80, everything works fine. This appears to be a recent problem.

这篇关于应用程序的FB.ui对话框永远挂在iframe模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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