إصدار ‏‎Graph API‎‏

تم إيقاف استخدام نقطة النهاية هذه اعتبارًا من 4 أبريل 2018. يُرجى الرجوع إلى سجل التغييرات لمزيد من المعلومات.

/{app-id}/staticresources

إحصاءات الاستخدام لأي موارد ثابتة يستخدمها تطبيق اللوحة في فيسبوك.

القراءة

مستكشف Graph 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_stats وprefetched_resources مرة أخرى، والذي يعرض فقط الموارد التي تم الوصول إليها عبر HTTPS.

object

النشر

لا يمكنك النشر باستخدام عنصر الربط هذا.

الحذف

لا يمكنك الحذف باستخدام عنصر الربط هذا.