We have seen how to create a Facebook developer account and add WhatsApp.
The WhatsApp Cloud API token is uniquely provided by Facebook along with the Phone Number ID, and WhatsApp Business Account ID. These credentials are needed by every business when using WhatsApp Cloud services.
The token provided by Facebook initially is temporal. Follow this guide to get a permanent WhatsApp Cloud API token.
- Open up the app panel on your Facebook Developers portal
- Click to open the business page linked to the app
Meta for Developers apps page
- The Facebook business setting page opens up. Click on System user on the side panel
- A list of existing users on that app is seen if any. Click Add to add a user then Accept the terms and conditions
Meta business system users
- Fill in the System username then set the System User Role to Admin and Create System User
Creating new Meta for business admin system user
- Click on Add Assets across the newly created user to add assets to use
Add assets to Meta business user
- A modal opens up, Navigate to Apps, select the app use and enable Manage App then Save changes
Assign Meta for business asset
- The asset gets added to the system user and Done
- Click on Generate New Token against the user to generate a new access token
Generate new token Meta for Business
- Select the App from the dropdown and check the
whatsapp_business_messaging
andwhatsapp_business_management
permissions and Generate Token
Add permissions to Meta business system user
- The permanent token gets generated and presented to you. Copy this token and use it in your integrations.
Generated WhatsApp Cloud API permanent token