Added quote marks around target phone number. (#3618)

The notification will not work if the target phone number is not quoted.
This commit is contained in:
Fredrik Fjeld 2017-10-14 14:54:22 +02:00 committed by Fabian Affolter
parent e3ab5eea07
commit c4f23a2fdb
No known key found for this signature in database
GPG Key ID: DDF3D6F44AAB1336

View File

@ -46,8 +46,8 @@ automation:
data: data:
message: 'Good Evening' message: 'Good Evening'
target: target:
- +919413017584 - '+919413017584'
- +919784516314 - '+919784516314'
``` ```
You can also send messages to users that do not have stored their phone number with Facebook, but this requires a bit more work. The Messenger platform uses page specific user IDs instead of a global user ID. You will need to enable a webhook for the "messages" event in Facebook's developer console. Once a user writes a message to a page, that webhook will then receive the user's page specifc ID as part of the webhook's payload. Below is a simple PHP script that reacts to the message "get my id" and sends a reply containing the user's ID: You can also send messages to users that do not have stored their phone number with Facebook, but this requires a bit more work. The Messenger platform uses page specific user IDs instead of a global user ID. You will need to enable a webhook for the "messages" event in Facebook's developer console. Once a user writes a message to a page, that webhook will then receive the user's page specifc ID as part of the webhook's payload. Below is a simple PHP script that reacts to the message "get my id" and sends a reply containing the user's ID: