From 134a442e85617a6a8da4a3c327e3df676f43a1d0 Mon Sep 17 00:00:00 2001 From: Adrian Lopez Date: Sun, 5 Feb 2017 21:49:43 +0100 Subject: [PATCH] Doc for rich facebook messages --- source/_components/notify.facebook.markdown | 23 +++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/source/_components/notify.facebook.markdown b/source/_components/notify.facebook.markdown index b34a8a396ffb..3a425016cc52 100644 --- a/source/_components/notify.facebook.markdown +++ b/source/_components/notify.facebook.markdown @@ -49,3 +49,26 @@ automation: - +919413017584 - +919784516314 ``` + +### {% linkable_title Rich messages %} +You could also send rich messing (cards, buttons, images, videos, etc). [Info](https://developers.facebook.com/docs/messenger-platform/send-api-reference) to which types or messages and how to build them. + +```yaml +# Example script with a notification entry with rich message + +script: + test_fb_notification: + sequence: + - service: notify.facebook + data: + message: Some text before the quick replies + target: 0034643123212 + data: + quick_replies: + - content_type: text + title: Red + payload: DEVELOPER_DEFINED_PAYLOAD_FOR_PICKING_RED + - content_type: text + title: Blue + payload: DEVELOPER_DEFINED_PAYLOAD_FOR_PICKING_BLUE +```