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

ไฟล์กลุ่ม

ไฟล์ที่อัพโหลดไปยังกลุ่มนี้

การอ่าน

Graph API Explorer
GET /v19.0/{group-id}/files 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(
    '/{group-id}/files',
    '{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(
    "/{group-id}/files",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/{group-id}/files",
    null,
    HttpMethod.GET,
    new GraphRequest.Callback() {
        public void onCompleted(GraphResponse response) {
            /* handle the result */
        }
    }
).executeAsync();
/* make the API call */
FBSDKGraphRequest *request = [[FBSDKGraphRequest alloc]
                               initWithGraphPath:@"/{group-id}/files"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];

ข้อกำหนด

ประเภทข้อกำหนดคำอธิบาย

การตรวจสอบแอพ

แอพของคุณต้องได้รับการอนุมัติสำหรับฟีเจอร์ API กลุ่ม

การติดตั้งแอพ

คุณจะต้องติดตั้งแอพในกลุ่ม

โทเค็น

โทเค็นการเข้าถึงผู้ใช้

ช่อง

ชื่อ คำอธิบาย ประเภท

download_link

URL สำหรับดาวน์โหลดไฟล์

string

group

กลุ่มที่ไฟล์ถูกอัพโหลด (กลุ่มเดียวกันกับในคำขอ)

Group

id

ID ของไฟล์ โปรดทราบว่าคุณไม่สามารถขอแต่ละไฟล์แยกกันตาม ID ได้ โดยคุณจะต้องขอผ่านจุดเชื่อมโยงนี้เท่านั้น

string

message

ข้อความที่รวมอยู่ในโพสต์สำหรับไฟล์

string

updated_time

เวลาที่มีการเปลี่ยนแปลงไฟล์ครั้งล่าสุด

datetime

การเผยแพร่

ระบบไม่รองรับการดำเนินการนี้

การลบ

ระบบไม่รองรับการดำเนินการนี้

การอัพเดต

ระบบไม่รองรับการดำเนินการนี้