グラフ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

HTTPSを通じてアクセスされるリソースのみ表示する、再度usage_statsprefetched_resourcesを含むオブジェクト。

object

公開

このエッジを使って公開することはできません。

削除

このエッジを使って削除することはできません。