Skip to content

Commit 79c38c1

Browse files
adrianlztpvizeli
authored andcommitted
Doc for rich facebook messages (home-assistant#1979)
1 parent faff9c9 commit 79c38c1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

source/_components/notify.facebook.markdown

+23
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,26 @@ automation:
4949
- +919413017584
5050
- +919784516314
5151
```
52+
53+
### {% linkable_title Rich messages %}
54+
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.
55+
56+
```yaml
57+
# Example script with a notification entry with rich message
58+
59+
script:
60+
test_fb_notification:
61+
sequence:
62+
- service: notify.facebook
63+
data:
64+
message: Some text before the quick replies
65+
target: 0034643123212
66+
data:
67+
quick_replies:
68+
- content_type: text
69+
title: Red
70+
payload: DEVELOPER_DEFINED_PAYLOAD_FOR_PICKING_RED
71+
- content_type: text
72+
title: Blue
73+
payload: DEVELOPER_DEFINED_PAYLOAD_FOR_PICKING_BLUE
74+
```

0 commit comments

Comments
 (0)