إصدار ‏‎Graph API‎‏

سلسلة /{thread-id}

تتوفر سلسلة محادثة رسائل في Facebook.

يجب على الصفحات استخدام نقطة نهاية المحادثة.

القراءة

احصل على سلسلة رسائل.

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

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

id

يمثل المعرف الفريد لسلسلة الرسائل هذه.

string

comments

يمثل الرسائل في هذه السلسلة.

Message[]

to

يمثل الملفات الشخصية المشتركة في السلسلة.

unread

integer

unseen

integer

updated_time

يمثل تاريخ أخر تحديث للسلسلة.

datetime

can_reply

يمثل أنه يمكن للصفحة الرد في السلسلة.

boolean

linked_group

يمثل معرف مجموعة Workplace التي ترتبط به السلسلة (Workplace فقط)

string

عناصر الربط

الاسم الوصف

messages

يمثل قائمة بالرسائل الفردية في السلسلة.

فلترة الرسائل

النشر

لا يمكنك إجراء هذه العملية على نقطة النهاية هذه.

لا يمكنك إجراء هذه العملية على نقطة النهاية هذه.

التحديث

لا يمكنك إجراء هذه العملية على نقطة النهاية هذه.