From 79c38c1792f5f99f9e968a4f5ca53ee78f8fe5d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20L=C3=B3pez?= Date: Mon, 6 Feb 2017 14:02:05 +0100 Subject: [PATCH] Doc for rich facebook messages (#1979) --- 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 b34a8a396ff..3a425016cc5 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 +```