Facebookのドキュメントはひどいものですが、次のように認証済みの友達を除外できることがわかりました。
// See https://developers.facebook.com/docs/games/requests/v2.1 for explanation of the possible parameter keys
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
// Optional parameter for sending request directly to user
// with UID. If not specified, the MFS will be invoked
// @"RECIPIENT_USER_ID", @"to",
// Give the action object request information
// @"send", @"action_type",
// @"YOUR_OBJECT_ID", @"object_id",
@"app_non_users", @"filters",
nil];
[FBWebDialogs
presentRequestsDialogModallyWithSession:nil
message:@"Join me!"
title:@"Invite Friends"
parameters:params
handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) {
if (error) {
// Case A: Error launching the dialog or sending request.
NSLog(@"Error sending request.");
} else {
if (result == FBWebDialogResultDialogNotCompleted) {
// Case B: User clicked the "x" icon
NSLog(@"User canceled request.");
} else {
NSLog(@"Request Sent.");
}
}
}];
@"app_non_users"、@"filters"、重要な部分です!