An individual Video in the Graph API.
To read a Video, issue an HTTP GET request to /VIDEO_ID with the user_videos permission. This will return videos that the user has uploaded or has been tagged in.
Video POST requests should use graph-video.facebook.com.
The User, Application, Event, Group, and Page objects have a videos connection. We support the following formats for uploading videos to these connections:
The aspect ratio of the video must be between 9x16 and 16x9, and the video cannot exceed 1024MB or 180 minutes in length.
A video on the Facebook Page:
https://graph.facebook.com/3802752155040
The Video object has the following fields.
| Name | Description | Permissions | Returns |
id | The video ID |
|
|
from | The profile (user or page) that created the video |
| object containing |
tags | The users who are tagged in this video |
|
|
name | The video title or caption |
|
|
description | The description of the video |
|
|
picture | The URL for the thumbnail picture for the video |
|
|
embed_html | The html element that may be embedded in an Web page to play the video |
|
|
icon | The icon that Facebook displays when video are published to the Feed |
|
|
source | A URL to the raw, playable video file |
|
|
created_time | The time the video was initially published |
|
|
updated_time | The last time the video or its caption were updated |
|
|
comments | All of the comments on this video |
|
|
The Video object has the following connections.
| Name | Description | Permissions | Returns |
| likes | All of the likes on this video |
|
|
| comments | All of the comments on this video |
|
|
| picture | The image which represents the content of the video |
| An HTTP 302 to the URL of the album's cover picture. |
You can like a Video by issuing an HTTP POST request to VIDEO_ID/likes with the publish_stream permission. No parameters necessary.
If the create is successful, you get the following return.
| Description | Type |
|---|---|
| If the create succeeded. | boolean |
You can unlike a Video by issuing an HTTP DELETE request to VIDEO_ID/like with the publish_stream permission.
If the delete is successful, you get the following return.
| Description | Type |
|---|---|
| If the unlike succeeded | boolean |
You can comment on a Video by issuing an HTTP POST request to VIDEO_ID/comments with the publish_stream permission and following parameters.
| Parameter | Description | Type | Required |
|---|---|---|---|
message |
Comment text | string |
yes |
If the create is successful, you get the following return.
| Name | Description | Type |
|---|---|---|
id |
The new comment ID | string |
How to upload a video to a user's profile using Graph API
How to upload a video to an Application, Group, or Page's wall using Graph API