เวอร์ชันของ API กราฟ

Video List

การอ่าน

A playlist for videos

ประสบการณ์เพจแบบใหม่

This endpoint is supported for ประสบการณ์เพจแบบใหม่.

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 กราฟ โปรดอ่านคู่มือการใช้ API กราฟของเรา

พารามิเตอร์

จุดสิ้นสุดนี้ไม่ต้องพารามิเตอร์ใดๆ

ช่อง

ช่องคำอธิบาย
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

การสร้าง

คุณไม่สามารถดำเนินการนี้ที่ปลายทางนี้

กำลังอัพเดต

คุณไม่สามารถดำเนินการนี้ที่ปลายทางนี้

กำลังลบ

คุณไม่สามารถดำเนินการนี้ที่ปลายทางนี้