Connect to the Facebook Messenger.
1. Create your facebook app at here. Select ‘Manage Business Integrations’ type.
2. At FB settings page > Basic, copy App ID, App secret to your plugin settings page.
3. Fill all your information.
4. Add products: Facebook Login with Web platform, Webhooks and Messenger.
5. Facebook login > Settings: Copy the Valid OAuth Redirect URIs from the plugin settings and paste it to the settings of the Facebook login.
6. Webhooks: Copy the Callback URL and Verify Token from the plugin settings and paste it to the settings of the Webhooks.
7. Save this setting page
8. Click ‘Connect to Facebook’ button > Select page you want to connect > Accept permissions > Done.
9. After connect to Facebook, return your Facebook App > Messenger > Settings. Edit Page Subscriptions, add subscription fields:
messages, messaging_postbacks, messaging_optins
messages, messaging_postbacks, messaging_optins
10. Now you can build the conversation for this chatbot and test it first.