我想向朋友发送 Facebook 邀请,但我不知道为什么在接收端显示邀请。
我用了这段代码
NSMutableDictionary* params =
[NSMutableDictionary dictionaryWithObjectsAndKeys:nil];
[FBWebDialogs
presentRequestsDialogModallyWithSession:nil
message:[NSString stringWithFormat:
@"I just smashed friends! %d Can you beat it?",15]
title:@"MSR"
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.");
}
}}];
谁能帮我??