message_deliveries
Webhook Event ReferenceThis callback will occur when a message a Page has sent has been delivered. You can subscribe to this callback by selecting the message_deliveries
field when setting up your webhook.
{ "sender":{ "id":"<PSID>" }, "recipient":{ "id":"<PAGE_ID>" }, "delivery":{ "mids":[ "mid.1458668856218:ed81099e15d3f4f233" ], "watermark":1458668856253 } }
sender
속성 | 유형 | 설명 |
---|---|---|
| 문자열 | Webhook 이벤트를 트리거한 사용자의 PSID입니다. |
| 문자열 | Webhook 이벤트를 트리거한 사용자의 user_ref입니다. 채팅 플러그인의 Webhook 이벤트에만 사용할 수 있습니다. |
recipient
속성 | 유형 | 설명 |
---|---|---|
| 문자열 | 페이지 ID입니다. |
delivery
Property | Type | Description |
---|---|---|
| Array | Array containing message IDs of messages that were delivered. Field may not be present. |
| Number | All messages that were sent before this timestamp were delivered |
Both mids
and watermark
fields are used to determine which messages were delivered. watermark
is always present and mids
is sometimes present. mids
provides delivery receipts on a per-message basis but may not be present (due to backward compatibility reasons with older Messenger clients). watermark
is always present and is a timestamp indicating that all messages with a timestamp before watermark
were delivered.