开发者

App Request Dialog, Popups in a new window [duplicate]

开发者 https://www.devze.com 2023-04-01 08:35 出处:网络
This question already has an answer here: Closed 11 years ago. Possible Duplicate: Fb.UI Dialogs are displaying in Popups instead of an iframe
This question already has an answer here: Closed 11 years ago.

Possible Duplicate:

Fb.UI Dialogs are displaying in Popups instead of an iframe

I got this code for application request dialog:

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 t开发者_StackOverflowo send gifts to!');
    }
  });

and it seems like the dialog is opening in a new window. I don't want this, I would like to popup the request dialog within a Facebook Styled POPUP, same happens with the feed dialog.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消