I\'m trying to create a Facebook Connect application that displays a friend invite dialog within the page using Facebook\'s Javascript API (through a FBMLPopupDialog).
This is how I solved it
My JS/FBML (note the target="_self" attribute for the multi-friend-selector):
var inviteDialog; // Keep a reference for the popup dialog
function makeInviteForm() {
// Set up request form elements here
var fbml = '';
fbml += '';
fbml += ' ';
fbml += ' ';
fbml += ' ';
fbml += ' ';
inviteDialog = new FB.UI.FBMLPopupDialog(title, fbml);
}
My PHP: