High speed broadcasting with the App on Facebook Developer
In this article, I will guide you through the steps to create an App on Facebook Developer and integrate it into the Broadcasting App on AhaChat.
Requirements to carry out this guide:
- You must have a Website (or use a competitor’s website within your field) that ...includes all required policy and terms pages as per Facebook's guidelines.
=> Links to sample Policy pages for reference: Privacy Policy – Terms of Service
- You must have BM (Business Manager) and User (used for activation) must be an Admin on the Page.
=> Link to go to Facebook BM: https://business.facebook.com/select/
Below are the detailed steps.
Step 1: Create App
- Log in to Meta for Developers at https://developers.facebook.com/ and click on the My Apps menu.
If you have never created an app before, the Get Started button will appear, click here and complete the account verification steps.
Click on Create App
- For some accounts, the Developer page may not display the "Create App" button or the "My Apps" page (see image). In this case, you need to register to be able to create applications on Facebook. Please follow the instructions provided at this link: https://developers.facebook.com/docs/development/register.
- Click Next
- Select an app type.
- Select the Business app type, then click Next.
- Name your application and click Create app. If you have a business account, link it at this step.
Step 2: Set up Messenger and configure it.
- On the app page, click on Add Product and find Messenger. Then, click on Set up.
- Skip 1. Configure webhooks and move directly to 2. Generate access tokens, click on Connect button. Complete the authentication as instructed and select the public Facebook page linked to the Messenger API to finalize the connection to your Fanpage.
*Note: The connected page must be the same as the one you created on the AhaChat chatbot.*
- After completing the connection, click on Generate Token.
.
- Check the box for I understand and copy this token, then click Done. Be sure to also save the Token (1) to be used later in the Broadcasting App configuration step.
- Move to the App settings → Basic menu, then click to Show and copy the App ID (2) and App secret (3). Make sure to save it for later use in the Broadcasting App configuration step.
Step 3: Integrate the Broadcasting App on AhaChat.
Log in to AhaChat.
In the Settings → Integration menu, enter the Bot Token (1), App ID (2), and App Secret (3) corresponding to the information you gathered earlier, then click the Update button.
- Copy the Webhook URL and the Verify token:
ahachat
.
- Go back to the Facebook App page. Click on Messenger API Settings, then click the Configure button in step 1. Configure webhooks.
- In the Edit Callback URL popup, configure the following parameters and click the Verify and save button.
- Callback URL:
https://webhook-api.ahachat.com/adapter/xxxx/messenger/webhook?ahachat_token=xxxx
- Verify Token:
ahachat
- Continue to move to step 2. Generate access tokens, click on Add Subscriptions. In the popup, check the box for Messages and then click Confirm.
- The final and important step: Update the information for the application and switch its mode to Live.
Step 4: Send a Broadcast using the integrated Facebook App.
Create a message broadcast campaign as usual. If you're unsure how to create one, you can refer to the guide here.
Switch to the Settings tab, set up the type of message you want to send, and select the Facebook App you just integrated. Click Schedule message and check the results.
Wishing you success!