Facebook graph API conversations webhook is not responding - facebook

I have set up a webhook callback here(https://glitch.com/edit/#!/nego-graph-api-webhook) and I also subscribe to conversations field on webhook page.
also, I have tested it with the Test button, I can see the response in my console. However, when I send a new message to my page, the webhook is not called?
May I know which part I'm missing out?

Related

Automatically subscribe pages to messenger webhook

I am working on a messenger platform that uses a messenger webhook to receive messages, and the Graph API to send messages. I currently need to go into my app settings and choose to subscribe pages that I already own.
I am wondering how I can subscribe pages that I don't own to my webhook. Is this possible if I have the Page Access Token? I can build an OAuth2 flow to get the Page Access Token, but I don't see what to do with it once I have it.
Any help is appreciated.
This can be achieved by making a POST call to /{page-id}/subscribed_apps endpoint with your Page Access Token.
API reference docs are at https://developers.facebook.com/docs/graph-api/reference/page/subscribed_apps/

Facebook Page Feed Webhook work in test but not when live

I have created a webhook to receive feed updates. I want to be notified when a post is liked or commented on or shared. I have set the endpoints up in a script on my server, i have also set up the webhook in the developers console. When i send a test event from the dev console in the webhook section my endpoint receives and processes it fine. When i set my app to live, nothing seems to be sent to the webhook from my page when i like or comment or post. I have followed all the instructions exactly. I have subscribed my page to the app and checked that it is subscribed, and also i have set my app to live. Yet there are still no webhook events received... Any one got any idea what im missing??
you have to get this permission pages_manage_metadata to get the feed activity on your webhook

How to subscribe facebook webhook event when customer comment to post

How can i subscribe facebook webhook event when customer comment something to my page post , i try to subscibe page/feed but can't receive any webhook into my server.
Only live and approved apps will receive Page feed events. Therefore you need to submit your app for review (manage_pages permission). After your app was approved you can switch it to live mode and you'll receive the events you subscribed to at your callback URL.

Connecting third party Facebook page via messenger api

I have an application that uses the Facebook messenger api to send and receive messages through a Facebook page. This works great. Now I need to be able to have a user in my application link their page so that messages sent to their page will send webhooks to our endpoint, and also give us the ability to send messages through that page using an auth_token.
Is there any way to do this via api, or will each user have to manually create a Facebook app, generate an auth_token for their page, and set the webhooks url to our endpoint? I've read about messenger account linking but I don't think it's quite what I need, as I'm not just looking to request additional profile information.
After looking a bit deeper, I found that in order to do this you must perform an OAuth flow to get an auth_token for the user, then use the graph api to get an auth_token for the desired user's page. Then with the page auth_token you can make a POST request to the subscribed_apps endpoint, which will then add the page to the app's webhook events.

Facebook Webhook for subscribing to a page (conversations) doesn't send a notification

I've been trying to setup a subscription to a page I own on Facebook using an App I've been using for many years (and this used to work for subscriptions to another Page).
Webhooks are setup, and a subscription has been created for 'conversations' to post back to a url on our server. When I test this through the webhooks page I can see the request come through on the server.
The only step that seemed to be missing was subscribing the page to the app itself.
However, I have now done this by issuing a POST request through the Graph Explorer directly to [page_id]/subscribed_apps. This returns true. When doing this however it requires a Page Access Token and gives me the Facebook authorization popup with a message saying:
"Submit for Login Review - Some of the permissions below have not been approved for use by Facebook."
I've worked out it means the 'manage_pages' permission.
If I click "OK" it goes through (presumably because the user I am authorizing as is a page admin?).
When I do a GET request to the same endpoint ([page_id]/subscribed_apps) I can see my App listed.
However, when a conversation on the page is updated (comment or new post) I don't receive a notification on the server.
Could this be because the permission isn't approved by Facebook, despite the fact that it shows as a subscribed App? I definitely didn't have to go through this before as the same App is live listening on notifications from another page without that permission granted, but I'm questioning whether something has since changed in the API.
Unfortunately this project goes live tomorrow so I don't have time to go through the Facebook review process...
Thanks for your help!
EDIT: I just attempted to subscribe to the description and/or mission fields on the page and edited these as the page owner and the notification came through instantly via the same webhooks subscription... which makes this even more confusing as it only seems to be failing for "conversations" eg: new posts/comments.