Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tagging friends in Facebook video IOS

I'm developing an IOS app that allows the user to upload a video on Facebook, I want also to allow user to tag his friends in video. I found how to tag friends in a photo, how to post something and tagging a friend, how to upload videos, but I can't find any solution to tag a friend in a video. Does anyone solved this problem? Thanks.

like image 982
Stern Edi Avatar asked Dec 05 '25 02:12

Stern Edi


1 Answers

I solved the problem, you have to post the video without tagging, and after that you can get the id of your post 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!!");
    }
}];
like image 187
Stern Edi Avatar answered Dec 06 '25 15:12

Stern Edi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!