Flag Facebook Friends IOS Videos

I am developing an IOS app that allows user to upload videos to Facebook, also want the user to be able to tag their friends on video. I have found how to tag friends in a photo, how to post and tag a friend, how to upload a video, but I cannot find any solution to tag a friend in a video. Has anyone solved this problem? Thank.

+3


source to share


1 answer


I solved the problem, you need to post the video without tags, after which you can get your post id and add tags. Here is the code



 [FBRequestConnection startWithGraphPath:[NSString stringWithFormat:@"%@/tags/%@?access_token=token", idPost,[[selectedFriends objectAtIndex:0] objectForKey:@"id"]] parameters:res HTTPMethod:@"POST" completionHandler:^(FBRequestConnection *connection, id result, NSError *error) {
    if (error)
    {
        NSLog(@"error: %@", error.localizedDescription);
    }
    else
    {
        NSLog(@"ok!!");
    }
}];

      

+1


source







All Articles