Message Types: Inbound

Text

{
    "type": "txt",
    "text": "Hi",
    "id": "aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDUwNzE3Mjg3NzkwOjM0MDI4MjM2Njg0MTcxMDMwMDk0OTEyODE5NTkxMjYyMjQ1NDY5MzozMDc2NTc3MzIxNTk5MzIwNzQ4MDgzNDY0MTY3MTIyNTM0NAZDZD"
}

Text with Postback Data

{
    "type": "txt",
    "text": "Hi",
    "postbackText": "Hi Clicked",
    "refmsgid": "msg001"
}

Image

{
    "type": "image",
    "text": "https://scontent.xx.fbcdn.net/v/t1.15752-9/317344710_1261587737744859_3620817878155549208_n.png?_nc_cat=108&ccb=1-7&_nc_sid=58c789&_nc_ohc=KVWtaByFTqkAX_uHeFB&_nc_ad=z-m&_nc_cid=0&_nc_ht=scontent.xx&oh=03_AdT0ees0_iA5BR_B-XQYyLZYuImgVuGkKgb9O7anPkXonQ&oe=63AC170C",
    "url": "https://scontent.xx.fbcdn.net/v/t1.15752-9/317344710_1261587737744859_3620817878155549208_n.png?_nc_cat=108&ccb=1-7&_nc_sid=58c789&_nc_ohc=KVWtaByFTqkAX_uHeFB&_nc_ad=z-m&_nc_cid=0&_nc_ht=scontent.xx&oh=03_AdT0ees0_iA5BR_B-XQYyLZYuImgVuGkKgb9O7anPkXonQ&oe=63AC170C",
    "id": "m_CIQDWkVv-AQ7NCw_NTdZK50OTs76FkLY7bRU0DdGeelpmXeIUD0xfUBens6r0Y98hVfnwTGbngPACfiem03nSA"
}

Audio

{
    "type": "audio",
    "text": "https://lookaside.fbsbx.com/ig_messaging_cdn/?asset_id=421796486652310&signature=AbzW6pWIX7jDcOxJBeoYd1IERWtEQxabEL6_AuuUUeDbbHrPh3HAfAVoOVWHEDJ0MEpZTyEWk-8tbvVfLADX6SbepnmIm3JkcbNCyat_9tcqouDfSB_4KTM9bg-RnehNFnZoka6xiCdvXiH6AtmiAHGNj62qpaoTs0TTkNqvVdKCfl-WdpcFQ4jyRaxkePSR5ggumgQGRPzyrwvB4HtW09krR7JA",
    "url": "https://lookaside.fbsbx.com/ig_messaging_cdn/?asset_id=421796486652310&signature=AbzW6pWIX7jDcOxJBeoYd1IERWtEQxabEL6_AuuUUeDbbHrPh3HAfAVoOVWHEDJ0MEpZTyEWk-8tbvVfLADX6SbepnmIm3JkcbNCyat_9tcqouDfSB_4KTM9bg-RnehNFnZoka6xiCdvXiH6AtmiAHGNj62qpaoTs0TTkNqvVdKCfl-WdpcFQ4jyRaxkePSR5ggumgQGRPzyrwvB4HtW09krR7JA",
    "id": "aWdfZAG1faXRlbToxOklHTWVzc2FnZAUlEOjE3ODQxNDUwNzE3Mjg3NzkwOjM0MDI4MjM2Njg0MTcxMDMwMDk0OTEyODE5NTkxMjYyMjQ1NDY5MzozMDc2NTc3OTU4ODcyMzk5MDg1NTQ0MjE0NzkzMjM3Mjk5MgZDZD"
}

Video

{
    "type": "video",
    "text": "https://video.xx.fbcdn.net/v/t42.3356-2/279706389_5247149972066791_1646077486116450676_n.mp4?_nc_cat=110&ccb=1-7&_nc_sid=060d78&_nc_ohc=BQlnKs0KGkQAX_URrAS&_nc_ht=video.xx&oh=03_AdSODrc_lFfBBtqiJ6-ciHdJALcZyWMnrBctEKF5XRvewg&oe=6384B800",
    "url": "https://video.xx.fbcdn.net/v/t42.3356-2/279706389_5247149972066791_1646077486116450676_n.mp4?_nc_cat=110&ccb=1-7&_nc_sid=060d78&_nc_ohc=BQlnKs0KGkQAX_URrAS&_nc_ht=video.xx&oh=03_AdSODrc_lFfBBtqiJ6-ciHdJALcZyWMnrBctEKF5XRvewg&oe=6384B800",
    "id": "m_QNQwbQwXA5Mh1m3hr5Bdbp0OTs76FkLY7bRU0DdGeemHmnH8PsMxQvsPuEJSVIUu6xLNubGQf7sEuCHOpuhgNg"
}

File

{
    "type": "file",
    "text": "https://cdn.fbsbx.com/v/t59.2708-21/11400256_941601832568118_1733528775_n.pdf/sample-1.pdf?_nc_cat=104&ccb=1-7&_nc_sid=0cab14&_nc_ohc=xppOqMIfdkMAX9KUxIq&_nc_ht=cdn.fbsbx.com&oh=03_AdQDM43gOxaPMLBP80iShkxFzhmOdeGbXIVtZ6T-k_G47w&oe=6385E25A",
    "url": "https://cdn.fbsbx.com/v/t59.2708-21/11400256_941601832568118_1733528775_n.pdf/sample-1.pdf?_nc_cat=104&ccb=1-7&_nc_sid=0cab14&_nc_ohc=xppOqMIfdkMAX9KUxIq&_nc_ht=cdn.fbsbx.com&oh=03_AdQDM43gOxaPMLBP80iShkxFzhmOdeGbXIVtZ6T-k_G47w&oe=6385E25A",
    "id": "m_FppbIAFs0Juk52DJ9bP63J0OTs76FkLY7bRU0DdGeemUORoywgSMvmmPHTSWQMyLJmYZDXOWO15OKxhCTWIOFA"
}

Post Comment

{
    "type": "reply",
    "text": "Amazing"
}

Recurring Notification Event

Not refreshed

    {
        "type": "notification_optin",
        "postbackText": "Get the latest updates from the world of gaming",
        "notificationToken": "8344314132832671282",
        "notificationFrequency": "DAILY",
        "notificationTimezone": "Asia/Kolkata",
        "tokenExpire": 1668856190089,
        "notificationTokenStatus": "NOT_REFRESHED"
    }

Stop notifications

{
        "type": "notification_optin",
        "postbackText": "Get the latest updates from the world of gaming",
        "notificationToken": "8344314132832671282",
        "notificationFrequency": "DAILY",
        "tokenExpire": 1668856190089,
        "notificationTokenStatus": "NOT_REFRESHED",
        "notificationStatus": "STOP_NOTIFICATIONS"
    }

Resume notifications

 {
        "type": "notification_optin",
        "postbackText": "Get the latest updates from the world of gaming",
        "notificationToken": "8344314132832671282",
        "notificationFrequency": "DAILY",
        "tokenExpire": 1668856190089,
        "notificationTokenStatus": "NOT_REFRESHED",
        "notificationStatus": "RESUME_NOTIFICATIONS"
    }

Refreshed

{
        "type": "notification_optin",
        "postbackText": "Get the latest updates from the world of gaming",
        "notificationToken": "8344314132832671282",
        "notificationFrequency": "DAILY",
        "notificationTimezone": "Asia/Kolkata",
        "tokenExpire": 1684408190089,
        "notificationTokenStatus": "REFRESHED"
    }

One-Time Notification

{
    "type": "one_time_notification_optin",
    "oneTimeNotificationToken": "1706513330031914567",
    "postbackText": "postbackText"
}