jgorset / facebook-messenger

Definitely the best way to make Bots on Facebook Messenger with Ruby
MIT License
962 stars 211 forks source link

To subscribe to the feed field, one of these permissions is needed: pages_manage_metadata #280

Open bradeaton opened 1 year ago

bradeaton commented 1 year ago

Created app on Facebook. Setup a page and connected it to the FB App. Got the access token. Configured the webhook. All that is working fine.

However when I try to subscribe my application to a page with the following:

Facebook::Messenger::Subscriptions.subscribe(access_token: ENV['ACCESS_TOKEN'], subscribed_fields: %w[feed mention name])

I get back errors:

(#200) To subscribe to the feed field, one of these permissions is needed: pages_manage_metadata. (Facebook::Messenger::Subscriptions::Error) To subscribe to the mention field, one of these permissions is needed: pages_manage_metadata. To subscribe to the name field, one of these permissions is needed: pages_manage_metadata

nguyendinhlam88 commented 1 year ago

@bradeaton how do you listen for events for field feed, there are no events supported?