From c4f23a2fdb4e93691e11898c7bd1641990712617 Mon Sep 17 00:00:00 2001 From: Fredrik Fjeld Date: Sat, 14 Oct 2017 14:54:22 +0200 Subject: [PATCH] Added quote marks around target phone number. (#3618) The notification will not work if the target phone number is not quoted. --- source/_components/notify.facebook.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/_components/notify.facebook.markdown b/source/_components/notify.facebook.markdown index 1d76436a13e..209fe6c827d 100644 --- a/source/_components/notify.facebook.markdown +++ b/source/_components/notify.facebook.markdown @@ -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: