IOS Facebook的朋友邀请不在Facebook的工作sdk

问题描述:

我工作的项目,我需要邀请Facebook的朋友,但通知不发送在Facebook帐户。IOS Facebook的朋友邀请不在Facebook的工作sdk

NSString *frindId=[[self.checkitem1 objectAtIndex:indexPath.row]valueForKey:@"id"]; 
    NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: 
           @"Come check out my app.", @"message", 
           frindId, @"to", 
           nil]; 


    [FBWebDialogs presentRequestsDialogModallyWithSession:nil message:[NSString stringWithFormat:@"Come check out my app."] 
                   title:@"MyWorkOut" 
                   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."); 
                    } 
                   } 
                   } 
    ]; 

我已经完成上面的代码邀请朋友使用Facebook的SDK。是他们邀请使用Facebook的朋友的任何解决方案sdk

+0

月该链接帮助你 - http://*.com/questions/30251540/fbfriendpickerdelegate-disappeared-with-facebook-v4/30252347#30252347 –

+0

@VijayMasiwal此链接列出朋友。但我想邀请朋友 –

+0

根据FBSDK文档** invitable_friends API仅适用于具有Facebook Canvas应用程序实现的游戏。此API仅适用于Graph API的2.0版(或更高版本)。** –

invitable_friends只适用于游戏,并且需要user_friends权限。 欲了解更多详情,请访问

https://developers.facebook.com/docs/graph-api/reference/user/invitable_friends/