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

เอกสารของกลุ่ม /{group-doc-id}

แสดงถึงเอกสารภายในกลุ่มบน Facebook โหนด /{group-doc-id} ส่งคืนเอกสารรายการเดียว

การอ่าน

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

สิทธิ์การอนุญาต

  • โทเค็นการเข้าถึงที่ถูกต้องใดก็ตาม หากกลุ่มเป็นแบบสาธารณะ (กล่าวคือ การตั้งค่าความเป็นส่วนตัวของกลุ่มจะเป็น OPEN)

ช่อง

ชื่อคุณสมบัติ คำอธิบาย ประเภท

id

ID เอกสารของกลุ่ม

string

from

โปรไฟล์ที่สร้างเอกสารนี้

User|Page

subject

ชื่อเอกสาร

string

message

เนื้อหาของเอกสาร สตริงนี้จะมี HTML สำหรับการจัดรูปแบบใดๆ ในเอกสาร และจะมีการเข้ารหัสแบบ HTML

string

icon

URL สำหรับไอคอนของเอกสาร

string

created_time

เวลาที่สร้างเอกสารขึ้นมา

datetime

updated_time

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

datetime

revision

ID ที่แสดงถึงการปรับปรุงแก้ไขเอกสารในปัจจุบัน

int

can_edit

ระบุว่าผู้ใช้เซสชั่นสามารถแก้ไขเอกสารนี้ได้หรือไม่

boolean

can_delete

ระบุว่าผู้ใช้เซสชั่นสามารถลบเอกสารนี้ (บน Facebook.com) ได้หรือไม่

boolean

embedded_urls

URL สำหรับการฝังเอกสาร

[string]

การเผยแพร่

คุณไม่สามารถสร้างเอกสารผ่าน API กราฟได้

การลบ

คุณไม่สามารถลบเอกสารผ่าน API กราฟได้

การอัพเดต

คุณไม่สามารถอัพเดตเอกสารผ่าน API กราฟได้