1

我是 Iphone 的新手,在 facebook 应用程序中卡住了,事实上,我在我的 TableView 中获取了我所有的 facebook 朋友的列表,他们的 id 是。当我在表格视图上选项卡时,我想向我的朋友发送通知,对话框正在显示,当我按下发送按钮时,Facebook 对话框消失,我的朋友没有收到通知。你能帮我吗。这是我的代码,

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    NSString* kAppId = @"317060778330475";
    Facebook *faceBook = [[Facebook alloc] initWithAppId:kAppId andDelegate:self];
    NSDictionary *dic = [facebookInfoArray objectAtIndex:indexPath.row];
    NSString *friendId = [dic valueForKey:@"id"];
    NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"Hi check my application, please!",  @"message",
                                   friendId, @"to",
                                   nil];
    [faceBook dialog:@"apprequests" andParams:params  andDelegate:self];
}

#pragma mark - Facebook Delegates 

- (void)dialogDidComplete:(FBDialog *)dialog {

    NSLog(@"App Request Sent!");
}
- (void)dialogCompleteWithUrl:(NSURL *)url {
    NSLog(@"Urls is :%@",url);
}
4

0 回答 0