Iphone 如何将数组发送到用户可以选择朋友并发布到Facebook墙的表中

Iphone 如何将数组发送到用户可以选择朋友并发布到Facebook墙的表中,iphone,ios,facebook,facebook-graph-api,nsarray,Iphone,Ios,Facebook,Facebook Graph Api,Nsarray,我使用以下代码调用Facebook请求方法,该请求调用委托方法,该方法返回一个NSDictionary对象,该对象带有标记为“data”的键。然后,我通过调用NSArray*data=[result objectForKey:@“data]”来获取好友数组 然后,代码循环遍历该数组并提取名称,并将其输出到控制台 我遇到的问题是如何将这个数组发送到一个表中,用户可以在其中选择一个朋友并发布到他们的FB墙 谢谢你的帮助:) 然后 [self apiGraphFriends]; 获取Faceboo

我使用以下代码调用Facebook请求方法,该请求调用委托方法,该方法返回一个NSDictionary对象,该对象带有标记为“data”的键。然后,我通过调用NSArray*data=[result objectForKey:@“data]”来获取好友数组

然后,代码循环遍历该数组并提取名称,并将其输出到控制台

我遇到的问题是如何将这个数组发送到一个表中,用户可以在其中选择一个朋友并发布到他们的FB墙

谢谢你的帮助:)

然后

 [self apiGraphFriends];

获取Facebook好友的照片和姓名。列阵选通

    FBRequest* friendsRequest = [FBRequest requestForMyFriends];
[friendsRequest startWithCompletionHandler: ^(FBRequestConnection *connection,
                                              NSDictionary* result,
                                              NSError *error) {
    friends = [result objectForKey:@"data"];
    arr_FaceBookFriendProfileImg = [[NSMutableArray alloc] init];
    arr_FaceBookFriendName = [[NSMutableArray alloc]init];


    for (NSDictionary<FBGraphUser>* friend in friends) {

        NSString *str_FacebookFriendNames;
        str_FacebookFriendNames = friend.name;
        NSString *userPhotoUrl = [NSString stringWithFormat:@"https://graph.facebook.com/%@/picture?", friend.id];
        NSURL *url_FriendProfileImage = [NSURL URLWithString:userPhotoUrl];


        [arr_FaceBookFriendName addObject:str_FacebookFriendNames];
        [arr_FaceBookFriendProfileImg addObject:url_FriendProfileImage];

    }
  //  [table_facebookFriends reloadData];
}];
请用一支钢笔,谢谢。facebookapi(我正在使用fbhackbook示例项目中的一些示例代码)内置了一些方法来实现这一点。我需要计算出[self-apidiologfeedfriend:[[data-objectAtIndex:*???**]objectForKey:@“id”];部分
 [self apiGraphFriends];
    FBRequest* friendsRequest = [FBRequest requestForMyFriends];
[friendsRequest startWithCompletionHandler: ^(FBRequestConnection *connection,
                                              NSDictionary* result,
                                              NSError *error) {
    friends = [result objectForKey:@"data"];
    arr_FaceBookFriendProfileImg = [[NSMutableArray alloc] init];
    arr_FaceBookFriendName = [[NSMutableArray alloc]init];


    for (NSDictionary<FBGraphUser>* friend in friends) {

        NSString *str_FacebookFriendNames;
        str_FacebookFriendNames = friend.name;
        NSString *userPhotoUrl = [NSString stringWithFormat:@"https://graph.facebook.com/%@/picture?", friend.id];
        NSURL *url_FriendProfileImage = [NSURL URLWithString:userPhotoUrl];


        [arr_FaceBookFriendName addObject:str_FacebookFriendNames];
        [arr_FaceBookFriendProfileImg addObject:url_FriendProfileImage];

    }
  //  [table_facebookFriends reloadData];
}];
      cell.lbl_FriendsProfileName.text = [arr_FaceBookFriendName objectAtIndex:indexPath.row];