STEP 12: Configure Text Club for WhatsApp Messaging
In this step, you will configure Text Club to send and receive WhatsApp messages.
Create Login Configuration
- Login to your Facebook Developer account and navigate to your app: https://developers.facebook .com/apps
- In the left sidebar, click on Add product and then select Facebook Login for Business.
- Complete the setup process
- On the left sidebar, click Facebook Login for Business and click Settings
-
In the Allowed Domains for the JavaScript SDK field enter your domain url eg.
https://example.com
- Click Save Changes at the bottom of the page.
- On the left side menu, click on Facebook Login for Business and click on Configurations
- Click Create Configuration
- In the Configuration Name field, enter a name for your configuration and click the Next button.
- Select Whatsapp Embedded Signup and click the Next Button
- Select Token Expiration as Never and click the Next button.
- Select Whatsapp Accounts as the assets you want to use for this configuration and click the Next button.
- Under Permissions, select whatsapp_business_management and whatsapp business messaging and click the Next button.
- Copy the Configuration ID. You will need it in the next step.
Obtain your App ID and App Secret
- In the left sidebar, click on Settings and then select Basic.
- Copy the App ID and App Secret. You will need them in the next step.
Set your App to Live
- On the Facebook Developer page, toggle the App Mode to Live. This option can be found at the very top of the page.
Add Whatsapp to your Text Club App
- Login to your Text Club application as an admin.
- On the left panel, Click on the Whatsapp Onboarding menu item .
- Paste the Configuration ID you copied in the previous step into the Configuration ID field.
- Paste the App ID you copied in the previous step into the App ID field.
- Paste the App Secret you copied in the previous step into the App Secret field.
- Click on the Submit button to save your changes.
Congratulations! You have successfully configured Text Club to send and receive WhatsApp messages.