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

เราเลิกใช้ตำแหน่งข้อมูลนี้แล้วตั้งแต่วันที่ 4 เมษายน 2018 โปรดดูข้อมูลเพิ่มเติมที่บันทึกการเปลี่ยนแปลง

/{app-id}/staticresources

สถิติการใช้งานแหล่งข้อมูลแบบคงที่ซึ่งใช้โดยแอพ Facebook Canvas

การอ่าน

Graph API Explorer
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_stats และ prefetched_resources เช่นกัน โดยแสดงเฉพาะแหล่งข้อมูลที่มีการเข้าถึงผ่าน HTTPS

object

การเผยแพร่

คุณไม่สามารถเผยแพร่โดยใช้จุดเชื่อมโยงนี้ได้

การลบ

คุณไม่สามารถลบโดยใช้จุดเชื่อมโยงนี้ได้