그래프 API 버전

이 엔드포인트는 2018년 4월 4일에 사용 중단되었습니다. 자세한 내용은 변경 사항을 참조하세요.

/{app-id}/staticresources

Facebook 캔버스 앱에서 사용하는 모든 고정 리소스의 사용량 통계.

읽기

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

권한

  • 앱 관리자용 사용자 액세스 토큰.

필드

이름 설명 유형

usage_stats

페이지를 읽어들일 때 각 리소스를 사용한 부분을 포함하는 고정 리소스 URL.

array

prefetched_resources

앱을 사용하는 사용자를 위해 현재 조기에 플러시 중인 고정 리소스 URL.

array

https

usage_statsprefetched_resources를 다시 포함하는 개체(HTTPS를 통해 액세스된 리소스만 표시).

object

게시

이 에지를 사용하여 게시할 수 없습니다.

삭제

이 에지를 사용하여 삭제할 수 없습니다.