应用程序请求对话框,弹出窗口在新窗口中

时间:2011-08-30 17:05:16

标签: user-interface facebook-graph-api facebook facebook-ui

  

可能重复:
  Fb.UI Dialogs are displaying in Popups instead of an iframe

我得到了应用程序请求对话框的代码:

FB.ui({ 
    method: "apprequests", 
    message: "You have a gift!  Click accept to see what it is!",
    data: gift, //This will be passed back to you when a user accepts the request
    title: "Send "+giftname+" to 50 friends!"
  },
  function(response) {
    if (response && response.request_ids) {
      alert('Your gift has been sent!');
    } else {
      alert('You must select some friends to send gifts to!');
    }
  });

似乎对话框在新窗口中打开。我不想要这个,我想在Facebook Styled POPUP中弹出请求对话框,与feed对话框一样。

1 个答案:

答案 0 :(得分:0)

尝试按照此guide设置display =“iframe”,但是当您需要提示用户获得扩展权限时,通常无法使用iframe。