I am working on getting a webhook into my backend when a user writes a comment on a page.
As instructed in https://developers.facebook.com/docs/messenger-platform/discovery/private-replies, I tried to do it but failed.
These are the steps I followed.
- Got 'page_show_list' and 'page_manage_metadata' permission
- Went to https://developers.facebook.com/tools/explorer/ and got a 'page Access token selecting the correct page. Here I selected 'page_show_list', 'page_manage_metadata', and 'page_messaging' permission to generate the page access token. Screenshot9 shows my permissions and page selection for page access token generation.
- Then I started my backend with that page access token.
- In the Facebook Developer portal -> webhooks -> page, I added the backend as the callback URL. It registered successfully without any error.
- I tested the webhook manually by clicking the Developer portal ->webhooks -> page ->feed ->test button and by backend got the test content.
- Went to the page, added a comment to an existing post, but my backend is not getting anything.
Have I done any mistakes in the middle?
