페이스 북 문서는 끔찍하지만 난 그것을 다음과 같이 인증 된 친구를 제외 할 수 있습니다 발견 : "필터"@ "app_non_users"@
// 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.");
}
}
}];
는, 중요한 부분입니다!