그래프 API 버전

그룹 이벤트

그룹에 속한 모든 이벤트.

읽기

Facebook 이벤트의 리스트를 반환합니다.

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

요구 사항

요구 사항 유형설명

앱 검수

앱이 그룹 API 기능에 대한 승인을 받아야 합니다.

앱 설치

앱이 그룹에 설치되어 있어야 합니다.

토큰

사용자 액세스 토큰입니다.

필드

기본적으로 최근 2주간의 이벤트만 반환합니다. until 또는 since 매개변수를 사용하여 이 범위를 수정할 수 있습니다.

게시

지원되지 않는 작업입니다.

삭제

지원되지 않는 작업입니다.

업데이트

지원되지 않는 작업입니다.