How to create Facebook app for messenger bots

Step 1: Go to the Facebook Developers page at: https://developers.facebook.com/

Step 2: On the page's top-right corner, choose an existing app, or create a new one:

facebook-app-step-2

Step 3: After choosing (or creating) an app: on the left navigation, click "Messenger", then on the right, hit the "Get Started" button.

facebook-app-step-3

Step 4: Setting up Token

4.1: Select the page that you want to use in BOT

facebook-app-step-4

4.2: Maybe you'll be asked for permissions, just Okay

facebook-app-step-4-2

4.3: Then, you must copy the token generated on the page, and click "Setup Webhooks" button.

facebook-app-step-4-3

4.4: On your web browser, open a new tab or new window, go to your WordPress site's backend, and go to the Settings > Facebook Bot Settings page.

facebook-app-step-4-4

4.5: Go back to the facebook website

facebook-app-step-4-5

The result:

facebook-app-step-4-6

Step 5: Request Permissions

You have to send a request to facebook, and wait for approving (it will take some days or more). If not, your BOT will work only with admin accounts.

Click "Request Permissions" button

facebook-app-step-5

When you complete all fields required to submit your review, the result'll be like this:

facebook-app-bot-review

If your app approved, your facebook bots will be able to send messages to everyone.