I'm using this to send an invitation from a user to his friend with my app, and asking for permission of public actions when they read news on my app:
function xlfb_friendInvite() {
FB.ui({method: 'apprequests',
message: 'great app http://apps.facebook.com/xaluancom enjoin w me..',
},
function(receiverUserIds) {
console.log("IDS : " + receiverUserIds.request_ids);
});
//http://developers.facebook.com/docs/reference/dialogs/requests/
}
But then I found out that the request did not come with external permission. When invited, the user received notice and accepted it, but there are no permissions along, so the app can not work.