Facebook Messenger difficulty

Hi,
I’m somehwat having difficulty setting up the facebook messenger notify component.
What I did:

  • created a page (must this be publicly visible?)
  • created a app
  • Went into developers site > Messenger Settings
    – created a Page token
    – did nothing yet with the webhook seup because didnt know what URL to use

Trying to send a message, I get:
17-04-01 11:54:43 ERROR (Thread-11) [homeassistant.components.notify.facebook] Error 400 : (#10) Requires phone matching access fee to be paid by this page unless the recipient user is an admin, developer, or tester of the app. (Code 10)

This I’m sure is related to my poor attempts to set it up.
Who can help me?

Hi,

From the documentation:

The phone number used in target should be registered with facebook messenger. Phone number of the recipient should be in +1(212)555-2368 format. If your app is not approved by facebook then the recipient should by either admin, developer or tester for your facebook app.

Assuming that you’ve set up the page/app yourself (and are therefore automatically an admin of the app), this suggests that the phone number you’re trying to send a message to is either incorrectly formatted (it needs to include the leading + then the country code, then the rest of the number) or that the number isn’t registered with your Facebook account.

Hope that helps!

That helped, thanks!
I added the number of my wife into the list. That must have caused the issue.
I’m now able to send notifications to myself (the number that is registered to my own fb account).
Is there a possibility add more numbers (my wife’s number/fb account)?

No problem!

In the settings page for the app you set up, you should be able to add accounts to be admins, developers or testers. Again, assuming your wife’s number is attached to her facebook account, you can add your wife as a “tester” and then it should work.

Thank you so much!

1 Like

Can you please help me setting up my webhook?

Since Oct 9th (after i updated to 0.55, now on 0.55.1), I’m getting tons of:

2017-10-16 20:06:30 ERROR (Thread-8) [homeassistant.components.notify.facebook] Error 400 : (#100) No matching user found (Code 100)

in my logs. I have not changed anything in my config or Facebook test apps page (but I’ve got myself and my wife added as admin and tester), but to me it seems the latter has changed its policy when it comes to non-US users and the ability to use messenger for apps. Can anyone confirm this (or is it a HA-side issue)?

I’m using Facebook notify for almost all automation information from HA, and now it’s completely broken so any help resolving this issue is greatly appreciated.

I have the same issue. FB messenger notification did always work till now. I didn’t modify anything in my automation.yml or notify.yaml

Mine also worked until Oct 9th. Can’t get it to work since. I’ve tried updating the token a few times but with no luck. I’m also a non US user. I’m on version 0.55.0. I can’t be sure but I also updated to 0.55 around that date. Is there a way of checking when an update was applied. This might help to determine if the cause was the 0.55 upgrade.

The format of the target is more restrictive than it used to be. Adding single quotes around the phone numbers I used helped resolving the issue.

1 Like

Could you share your script? I added single quotes around my phone numbers but still don’t receive messages.

- service: notify.facebook
  data:
    message: 'Test notification message.'
    data:
      attachment:
        type: 'image'
        payload: 'https://some-url.com/maxresdefault.jpg'
    target:
      - '+31612345670'
      - '+31616127237'
1 Like

Looks ok to me.

I’ve never managed to get both message and attachment to work in the same rule (often get timeouts for pictures). Try splitting the two.

Not sure whether https is supported though.

I said too much. Sending pictures as data worked for a while, but now I get tons of:

2017-11-02 22:05:20 ERROR (SyncWorker_18) [homeassistant.components.notify.facebook] Error 400 : (#10) Requires phone matching access fee to be paid by this page unless the recipient user is an admin, developer, or tester of the app. (Code 10)

and

2017-11-02 18:25:04 ERROR (SyncWorker_12) [homeassistant.components.notify.facebook] Error 500 : An unknown error has occurred. (Code 1)
Sigh

M
All my users have the required access right and receive text messages without problems. Trying to send pictures causes the problem since a week or so.

Thinking of throwing out the messenger component alltogether. It has caused mayhem since the 0.55 update.

I also noticed that facebook messenger stopped sending messages after updating recently. Adding single quotes around the target phone number fixed things up. Thanks for the tip!

This worked for me, all working again, thanks

If your Facebook Messenger notifier suddenly stops after upgrading, single quotes is the solution.
Thanks!

…and for some strange reason things started working again from 0.57.3. :slight_smile:

This totally stopped working for me again with this in my logs (even for simple messages):

[homeassistant.components.notify.facebook] Error 400 : (#10) Requires phone matching access fee to be paid by this page unless the recipient user is an admin, developer, or tester of the app. (Code 10)

Here’s my test script:

test_facebook_message:
  sequence:
    service: notify.facebook
    data:
      message: Testing, one, two
      target: !secret notify_phone_number

and my phone number secret is formatted as: '+155512345678'

I haven’t really dug in, but it’s possible that I broke my facebook app/page somehow. Is this working for others?

1 Like

Yes, Works fine for me in, version 0.58.0, with single quotes.

well, that’s good at least. it doesn’t even work for me using curl anymore. i must’ve messed up my facebook app/page somehow. :confused: