mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 09:17:06 +00:00
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:
parent
e3ab5eea07
commit
c4f23a2fdb
@ -46,8 +46,8 @@ automation:
|
||||
data:
|
||||
message: 'Good Evening'
|
||||
target:
|
||||
- +919413017584
|
||||
- +919784516314
|
||||
- '+919413017584'
|
||||
- '+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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user