グラフAPIバージョン

スレッド /{thread-id}

Facebookメッセージのスレッド。

ページではスレッドエンドポイントを使用してください。

読み取り

メッセージスレッドの取得。

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

当該メッセージスレッドの一意のID。

string

comments

当該スレッドのメッセージ。

Message[]

to

スレッドをフォローしているプロフィール。

unread

integer

unseen

integer

updated_time

スレッドの最終更新日時。

datetime

can_reply

ページがスレッドで返信できるかどうか。

boolean

linked_group

スレッドがリンクしてるWorkplaceグループのID (Workplaceのみ)

string

エッジ

名前 説明

messages

スレッドの個別のメッセージのリスト。

メッセージのフィルタリング

公開

この操作は、このエンドポイントでは実行できません。

この操作は、このエンドポイントでは実行できません。

更新

この操作は、このエンドポイントでは実行できません。