Версия API Graph

Video List

Чтение

A playlist for videos

New Page Experience

This endpoint is supported for New Page Experience.

Feature Permissions

НазваниеОписание
Доступ к общедоступному контенту СтраницThis feature permission may be required.

Пример

Graph API Explorer
GET /v19.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
}];
Чтобы узнать, как использовать API Graph, ознакомьтесь с нашим руководством по API Graph.

Параметры

Эта конечная точка не содержит параметров.

Поля

ПолеОписание
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

Границы контекста

Граница контекстаОписание
Edge<Video>

Videos in the playlist

Error Codes

ОшибкаОписание
102Session key invalid or no longer valid

Создание

Нельзя выполнить эту операцию в этой конечной точке.

Обновление

Нельзя выполнить эту операцию в этой конечной точке.

Удаление

Нельзя выполнить эту операцию в этой конечной точке.