Facebook Channel
When there are new incoming messages, or message status is updated (e.g., sent, read), iSlash will post data to the Webhook URL.
Incoming
{
"object": "page",
"entry": [
{
"id": "101577621799715",
"time": 1692603667565,
"messaging": [
{
"sender": {
"id": "5696251489156017"
},
"recipient": {
"id": "101577621799715"
},
"timestamp": 1692603667024,
"message": {
"mid": "m_P10R86QejqZGH_elIs8rtx-fllvb5gZ6gtMVyjR2CaW96qcItvaMPY0Os84-jit8H5cVZDdmzXFBRfN3eFqD7A",
"text": "Hi"
}
}
]
}
]
}
{
"object": "page",
"entry": [
{
"id": "101577621799715",
"time": 1692604042857,
"messaging": [
{
"sender": {
"id": "5696251489156017"
},
"recipient": {
"id": "101577621799715"
},
"timestamp": 1692604042323,
"message": {
"mid": "m_G6TzKnYqb_RBaWeXRZ5EuB-fllvb5gZ6gtMVyjR2CaWyx-7bay6u57dV7nMZ3ZTuEU-vWRFgdhZMAoGA7qrMTA",
"attachments": [
{
"type": "image",
"payload": {
"url": "https://scontent.xx.fbcdn.net/v/t1.15752-9/368869888_252392991033601_1760216338335203218_n.jpg?_nc_cat=101&ccb=1-7&_nc_sid=58c789&_nc_ohc=JrZpInQnHvgAX80hQIK&_nc_ad=z-m&_nc_cid=0&_nc_ht=scontent.xx&oh=03_AdTHtMheWu5-6QJ0NOUj5uPb2w4FxaWCzAr4G_Te_RMHGg&oe=650A9302"
}
}
]
}
}
]
}
]
}
Other Message Status
Please refer to https://developers.facebook.com/docs/whatsapp/api/webhooks/inbound for other incoming message types.
{
"object": "page",
"entry": [
{
"time": 1692604786155,
"id": "101577621799715",
"messaging": [
{
"sender": {
"id": "5696251489156017"
},
"recipient": {
"id": "101577621799715"
},
"timestamp": 1692604786005,
"delivery": {
"mids": [
"m_JiJWPqr36dPtP3qjT-1Bfh-fllvb5gZ6gtMVyjR2CaWeqI38tMhiZGv9vFVv78PsnStQ2O4G4p-dN6K0EgD_zw"
],
"watermark": 1692604785165
}
}
]
}
]
}
{
"object": "page",
"entry": [
{
"time": 1692605250846,
"id": "101577621799715",
"messaging": [
{
"sender": {
"id": "5696251489156017"
},
"recipient": {
"id": "101577621799715"
},
"timestamp": 1692605250585,
"read": {
"watermark": 1692604785165
}
}
]
}
]
}
Last updated