You'll need to keep track of which user's have invited who, via a join table. Here's the FB.ui JS w/ callback to get you started:
FB.ui({
    method: 'apprequests',
    title: t,
    message: m
},
function(response) {
  if (response) {
    $.ajax({
      type: 'POST',
      url: "/invitation_requests/create",
      data: { "requests[]" : response.request_ids },
      timeout: 12500,
      async : false, // This fixes an issue w/ IE
      complete: function() {
        $.cookie( "latest_request_ids", response.request_ids.length );
        window.location = "/users"
      }
    });
  }
});