/{video-id}
An individual video on Facebook.
GET /v21.0/{video-id} HTTP/1.1
Host: graph.facebook.com
/* PHP SDK v5.0.0 */
/* make the API call */
try {
// Returns a `Facebook\FacebookResponse` object
$response = $fb->get(
'/{video-id}',
'{access-token}'
);
} catch(Facebook\Exceptions\FacebookResponseException $e) {
echo 'Graph returned an error: ' . $e->getMessage();
exit;
} catch(Facebook\Exceptions\FacebookSDKException $e) {
echo 'Facebook SDK returned an error: ' . $e->getMessage();
exit;
}
$graphNode = $response->getGraphNode();
/* handle the result */
/* make the API call */
FB.api(
"/{video-id}",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{video-id}",
null,
HttpMethod.GET,
new GraphRequest.Callback() {
public void onCompleted(GraphResponse response) {
/* handle the result */
}
}
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
initWithGraphPath:@"/{video-id}"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
user_videos
permission.Property Name | Description | Type |
---|---|---|
| The video ID. |
|
| The time the video was initially published. |
|
| The description of the video. |
|
| The HTML element that may be embedded in a Web page to play the video. |
|
| The different formats of the video. |
|
| Event associated with the video. | |
| The profile that created the video. | |
| The icon that Facebook displays when videos are published to the feed. |
|
| The video title or caption. |
|
| The URL for the thumbnail picture of the video. |
|
| Location associated with the video. | |
| A URL to the raw, playable video file. |
|
| The last time the video or its caption was updated. |
|
You can publish videos by using the /{user-id}/videos
, /{event-id}/videos
, and /{page-id}/videos
edges.
Property Name | Description |
---|---|
Profiles that like this video. | |
Comments on this video. | |
Posts that share this video. | |
Captions for this video. |