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.
精彩评论