我正在尝试通过我的应用程序向我的 Facebook 朋友发送邀请。我的应用程序中有我的 facebook 朋友的朋友列表,我使用 FBWeb-dialog 向我的朋友发送邀请。在选择我想要向其发送请求的朋友后,我正在向他们发送请求并且它工作正常,但我的问题是他们没有收到任何通知他们的墙。谁能告诉我我应该怎么做才能通过通知通知他们。我也附上我的代码。
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:[arrSelectedFriends componentsJoinedByString:@","], @"suggestions",nil];
[FBWebDialogs presentRequestsDialogModallyWithSession:nil
message:@"User X” has invited you to join demoApp,Download the free app here."
title:nil 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.");
}
}
}];