0

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 to 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.

Community
  • 1
  • 1
MDGA
  • 1
  • 1
  • 1

1 Answers1

0

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

bkaid
  • 51,465
  • 22
  • 112
  • 128