/{conversation-id}A Messenger conversation between a person and a Facebook Page or an Instagram Professional Account.
GET /v24.0/{conversation-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(
'/{conversation-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(
"/{conversation-id}",
function (response) {
if (response && !response.error) {
/* handle the result */
}
}
);/* make the API call */
new GraphRequest(
AccessToken.getCurrentAccessToken(),
"/{conversation-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:@"/{conversation-id}"
parameters:params
HTTPMethod:@"GET"];
[request startWithCompletionHandler:^(FBSDKGraphRequestConnection *connection,
id result,
NSError *error) {
// Handle the result
}];MESSAGING task on the Page being queriedFor Instagram Messaging, you will also need:
| Name | Description |
|---|---|
| The ID for the conversation |
| Indicates whether the app making this request is the thread owner responsible for replying to the conversation Note: This field will only be returned if the associated Facebook Page or Instagram account has enabled Conversation Routing |
| Messages within the conversation |
Page messaging only
Page messaging only
Instagram Messaging only | Participants in the conversation Instagram-Scoped ID or Page-scoped ID for a person or Instagram ID for your Instagram Professional account or the Page ID. Email for the person or Page Name for the person or Page Instagram username for a person or your Instagram Profession account |
| The time when the last message was added to the conversation |
To get information about a specific message within a conversation, send a request to the Message endpoint.
You can't publish using this edge.
Use the Messenger Platform to send Templates, Quick Replies, and more.
You can't delete using this edge.
You can't update using this edge.
| Name | Description | Used to Publish |
|---|---|---|
List of all messages in the conversation | Replies (by Pages only) |