A playlist for videos
Nombre | Descripción |
---|---|
Acceso a contenido público de páginas | This feature permission may be required. |
GET /v21.0/{video-list-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-list-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-list-id}",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);
/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{video-list-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-list-id}"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];
Campo | Descripción |
---|---|
id numeric string | Video playlist ID |
creation_time datetime | The time when the playlist was created |
description string | Description of the playlist |
last_modified datetime | The time when the contents of the playlist was last changed |
owner User|Page | Owner of the playlist |
season_number int32 | Number of Season which this episode belongs to |
thumbnail string | Thumbnail of the playlist |
title string | Title of the playlist |
videos_count int32 | Number of Videos in the playlist |
Perímetro | Descripción |
---|---|
Edge<Video> | Videos in the playlist |
Error | Descripción |
---|---|
190 | Invalid OAuth 2.0 Access Token |
102 | Session key invalid or no longer valid |
100 | Invalid parameter |