Code Cooker
Code Cooker

Reputation: 937

messaging_optins webhook event not working for messenger

I'm trying to get the event when the developer/tester/admin click on the messenger plugin to start the chat.

these are the selected event with my app:

Selected events: messages, messaging_postbacks, messaging_optins

from these 3 events, two are working perfectly. but messaging_optins isn't working.

from the documentation:

https://developers.facebook.com/docs/messenger-platform/reference/webhook-events/messaging_optins

This callback will occur when the send to Messenger plugin has been tapped, a user has accepted a message request using customer matching, or a user has opted in to receive messages via the checkbox plugin.

I'm tapping on the start chat button with a different developer account. but every time it fails to send me the webhook for this. but other 2 hooks are working perfectly!

Can you guys please help me with that?

Upvotes: 2

Views: 793

Answers (1)

Saad Ramay
Saad Ramay

Reputation: 152

enter image description here

You'll need to setup webhook subscription for each page as well. As you can see in image, I have subscribed to "messaging_optins" on "Configure webhooks" section and "Generate access tokens" section as well.

Upvotes: 0

Related Questions