그래프 API 버전

그룹 문서 /{group-doc-id}

Facebook 그룹 내의 문서를 나타냅니다. /{group-doc-id} 노드는 하나의 문서를 반환합니다.

읽기

그래프 API 탐색기
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를 통해 문서를 업데이트할 수 없습니다.