在Facebook中设置邀请好友的Facebook设置

这可能是一个容易的问题,但任何人都可以告诉我。

是否有任何设置,我们需要在应用程序(在Facebook开发人员网站)为邀请朋友做?

我已经完成了所有的代码邀请朋友。

当我用其中邀请朋友正在工作的示例代码的Facebook应用程序IDreplace时,我的代码也正常工作。

但是,当我replace我的APP ID,然后过程进展顺利,显示我成功的邀请消息,但邀请不发送。

我正在使用下面的代码:

[FBWebDialogs presentRequestsDialogModallyWithSession:nil message:FacebookInviteMessage title:@"Invite Friends" parameters:parameters handler:^(FBWebDialogResult result, NSURL *resultURL, NSError *error) { NSString *strResultUrl = [resultURL absoluteString]; if (result == FBWebDialogResultDialogCompleted && ![strResultUrl isEqualToString:@"fbconnect://success"]) { MIDLog(@"Web dialog complete: %@", resultURL); if (![resultURL query]) { return; } NSDictionary *params = [self parseURLParams:[resultURL query]]; NSMutableArray *recipientIDs = [[NSMutableArray alloc] init]; for (NSString *paramKey in params) { if ([paramKey hasPrefix:@"to["]) { [recipientIDs addObject:[params objectForKey:paramKey]]; } } if ([params objectForKey:@"request"]) { NSLog(@"Request ID: %@", [params objectForKey:@"request"]); } if ([recipientIDs count] > 0) { //[self showMessage:@"Sent request successfully."]; //NSLog(@"Recipient ID(s): %@", recipientIDs); UIAlertView *alrt = [[UIAlertView alloc] initWithTitle:@"Success!" message:@"Invitation(s) sent successfuly!" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles: nil]; [alrt show]; alrt = nil; } UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Success" message:FacebookInviteSuccess delegate:self cancelButtonTitle:@"Proceed" otherButtonTitles:nil]; alert.tag = 14114; [alert show]; alert = nil; } else if (result == FBWebDialogResultDialogCompleted && [strResultUrl isEqualToString:@"fbconnect://success"]) { MIDLog(@"Cancel Clicked"); UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Cancelled" message:nil delegate:self cancelButtonTitle:@"Proceed" otherButtonTitles:nil]; alert.tag = 14114; [alert show]; alert = nil; } else { MIDLog(@"Web dialog not complete, error: %@", error.description); UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Error" message:InternetFailError delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; alert.tag = 15115; [alert show]; alert = nil; } } friendCache:self.friendCache] 

我在Facebook开发人员网站的应用程序设置中提供了canvasURL,它适用于我