إصدار ‏‎Graph API‎‏

مرجع Graph API /{app-id}/permissions

الأذونات التي تمت الموافقة عليها من خلال مراجعة تسجيل الدخول.

تعرف على المزيد عن مراجعة تسجيل الدخول

القراءة

مستكشف Graph API
GET /v19.0/app/permissions 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/permissions',
    '{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/permissions",
    function (response) {
      if (response && !response.error) {
        /* handle the result */
      }
    }
);
/* make the API call */
new GraphRequest(
    AccessToken.getCurrentAccessToken(),
    "/app/permissions",
    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/permissions"
                                      parameters:params
                                      HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
                                      id result,
                                      NSError *error) {
    // Handle the result
}];

الأذونات

  • يلزم توفير رمز وصول التطبيق لاسترداد الأذونات التي تمت الموافقة عليها في هذا التطبيق.

الحقول

يُرجع عنصر الربط هذا قائمة بالكائنات التي تمثل كل إذن تم منحه:

الاسم الوصف النوع

permission

اسم الإذن.

string

status

يشير إلى ما إذا تم منح الإذن أم تم رفضه من قبل المستخدم.

enum{live}

النشر

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

الحذف

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

التحديث

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