Creating a Permanent Access Token
Last updated
Last updated
Knowing that you need to use a bearer token in the Authorization header of an HTTP request is helpful, but it’s not enough. The only access token you’ve seen so far is temporary. Chances are that you want your app to access the API for more than 24 hours, so you need to generate a longer-lasting access token.
Fortunately, the Meta for Developers platform makes this easy. All you need to do is add a System User to your business account to obtain an access token you can use to continue accessing the API.
To create a system user, do the following:
Open in the new tab this link https://business.facebook.com/settings/
Select the business account your app is associated with.
Below Users, click System Users.
Click Add button.
Click I accept and Done button.
Name the system username, choose Admin as the user role, and click Create System User button.
Click I accept button and Done.
Before generating the token, you need to assign the asset. Under System users, click Assign assets.
Click Apps, tick your asset, toggle on Full control - Manage app, click Save Changes button, and click Done.
Click Generate New Token, choose the App, and choose Never.
Under Permission, tick the catalog_management, whatsapp_business_management, and whatsapp_business_messaging permission, then click the Generate token button.
Copy your Access token.
Then paste it into the Kuasa settings (Whatsapp integration > Whatsapp Official) (https://campaigns.kuasa.io/whatsapp-integration.php).
Yay! You already successfully got all the 4 details needed. Let's go to the next page to check if your Whatsapp Official is already connected with your Kuasa system.