Is it possible to tag friends in video with graph api?

I haven't find anything related. Might be i would have searched wrongly. I want to tag friends in video.

How do i do that using graph api in facebook?

Answers


It is possible to tag friends in a video, but it's just not in the documentation. I've searched quite some time myself to no avail, but then tried a couple of things and got it working.

The two permissions you need are publish_actions and user_videos.

It works quite similar to tagging photos, which is done with the /{photo_id}/tags endpoint. Although the video equivalent /{video_id}/tags is nowhere to be found in the documenation, it apparently does exist. With photos you can supply the parameter tags as an array. Video tagging only supports one tag at a time with the tag_uid parameter. So if you want to tag multiple people, you'll have to do multiple posts.

This is the final working solution with the PHP SDK:

$facebook = new Facebook(array('[YOUR_APP_ID]', '[YOUR_APP_SECRET]'));

$response = $facebook->api('/me/videos', 'POST', array(
    'access_token' => $facebook->getAccessToken(),
    'title'        => '[YOUR_TITLE]',
    'description'  => '[YOUR_DESCRIPTION]',
    'source'       => '@' . realpath('[PATH_TO_YOUR_VIDEO')
));

$facebook->api('/' . $response['id'] . '/tags', 'POST', array(
    'access_token' => $facebook->getAccessToken(),
    'tag_uid'      => '[FRIENDS_FACEBOOK_ID]'
));

Read this https://developers.facebook.com/docs/reference/api/post/

The post supports adding message tags.

Under the message_tags column

object containing fields whose names are the indexes to where objects are mentioned in the message field; each field in turn is an array containing an object with id, name, offset, and length fields, where length is the length, within the message field, of the object mentioned


Need Your Help

(Tkinter) Command executed automatically when binding, binding not acting as expected

python-3.x tkinter key-bindings

I am trying to bind a key to a command conditionally. But when I bind, the command gets automatically executed (when I toggle both commands). Why does that happen? And how can I only bind a command

add music to my iPhone with out losing the existing once

itunes music sync local

prove me if I am wrong, I am fan of apple products, but the iTune application which is supposedly the heart of many of the transactions looks so messy for me specially with music. I have more than 5