Core: Facebook Messenger integration broken - Error 403 : (#230) Requires pages_messaging_phone_number permission to manage the object (Code 230)

Created on 30 Jan 2020  路  7Comments  路  Source: home-assistant/core

The problem

After following the instructions how to setup Facebook Messenger Integration and trying to send a message via below test script I get
Error 403 : (#230) Requires pages_messaging_phone_number permission to manage the object (Code 230)

Environment

  • Home Assistant release with the issue:
    Home Assistant 0.104.2

  • Last working Home Assistant release (if known):
    None

  • Operating environment (Hass.io/Docker/Windows/etc.):
    Hass.io

  • Integration causing this issue:
    Facebook Messenger

  • Link to integration documentation on our website:
    https://www.home-assistant.io/integrations/facebook/

Problem-relevant configuration.yaml

notify:
  - name: Messenger
    platform: facebook
    page_access_token: [LONG TOKEN STRING]
#Test script used to send message

data:
  message: 'Testing, one, two'
  target:
    - '+46000900900'
service: notify.messenger

Traceback/Error logs

Error 403 : (#230) Requires pages_messaging_phone_number permission to manage the object (Code 230)

Additional information

The documentation could need some more guidance how to setup the Facebook developer side, or a link to a good guide.

  • The Facebook App is in development mode
  • I have not configured the Facebook App Webhooks, (cant find anything in the HA instructions if this is needed or not)
  • I have not Published the Facebook App Page (cant find anything in the HA instructions if this is needed or not)

Related issues:
https://github.com/home-assistant/home-assistant/issues/26132
https://github.com/home-assistant/home-assistant/pull/14257

facebook stale

Most helpful comment

Same problem here.

After reading https://github.com/home-assistant/home-assistant/issues/26132 I understand that FB don't accepts phone numbers anymore as target. We will have to use PSID instead.

But to obtain PSID, it needs a good amount of coding from what I can see there : https://developers.facebook.com/docs/messenger-platform/identity/id-matching

I'm wondering how we can implement all this in HA.

All 7 comments

I have the same issue, can anyone help?

Hi, same here.
waiting for some advice.

Same problem here.

After reading https://github.com/home-assistant/home-assistant/issues/26132 I understand that FB don't accepts phone numbers anymore as target. We will have to use PSID instead.

But to obtain PSID, it needs a good amount of coding from what I can see there : https://developers.facebook.com/docs/messenger-platform/identity/id-matching

I'm wondering how we can implement all this in HA.

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 馃憤
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

Also do not work for me. same error

I'm wondering how we can implement all this in HA.

Other components setup webhooks, so I don't see why this couldn't be done. I think the trickier part is how to represent that information in Home Assistant when a message comes in

Same here

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Konstigt picture Konstigt  路  3Comments

neonandu picture neonandu  路  3Comments

kirichkov picture kirichkov  路  3Comments

sh0rez picture sh0rez  路  3Comments

bdraco picture bdraco  路  3Comments