Sending notifications to Facebook Messenger

Hi,

I’ve created integration for sending notifications to Facebook Messenger. It’s available in HACS.
It has two advantages over official integration.

  1. Sending images (or other media files) is possible
  2. You can assign user’s id to name and use it as notification’s target.

Registering as facebook developer is still required. I’ve put down instruction in readme.

Give it a try if you like
Open your Home Assistant instance and open a repository inside the Home Assistant Community Store.
Facebook Messenger integration in GitHub

Mike.

I set this up the other night and got it working without too much trouble, so well done!

Does the webhook, auto PSID reply only work for a certain time? I sent messages from other accounts that I wanted to link after a few days, but didn’t get a response.

Your projects at Glitch will expire after some time, if you don’t register an account, I think.

I did notice that after I posted the question here, but Glitch expires after 5 days, and it wasn’t that long.
I tried setting up a new version of the webhook without success, I might go back and try deleting and recreating.

Tried it all again tonight, deleted webhook, recreated everything, no success. In the preview pane of the glitch page the message:

Cannot GET /

Bit odd.

So I THINK I know what might be happening.
On my facebook developers page it says
“To ensure quality and prevent abuse of the platform, all Messenger apps must be submitted for review before they can interact with everyone on Messenger.”
Standard access level for the app is limited to this people who have a role on my app.
And using my wife’s facebook as a guinea pig, the only way to give someone a role on my app is for them to have a developers account.
I can submit the app for review, which will take 5 days.

Yes, it’s mentioned on github issue #1 thread, but I paste it here:

First, everyone you want to send messages to must register as facebook developer, then you have to add them as your testers.
image
At your app configuration page click Roles and again Roles , you’ll see Testers section. Add your gf there.

1 Like