Skip to content

Commit 5137e06

Browse files
fredrikfjeldfabaff
authored andcommitted
Added quote marks around target phone number. (home-assistant#3618)
The notification will not work if the target phone number is not quoted.
1 parent e9bfa54 commit 5137e06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/_components/notify.facebook.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ automation:
4646
data:
4747
message: 'Good Evening'
4848
target:
49-
- +919413017584
50-
- +919784516314
49+
- '+919413017584'
50+
- '+919784516314'
5151
```
5252

5353
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:

0 commit comments

Comments
 (0)