Creating a Permanent Access Token

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:

  1. Open in the new tab this link https://business.facebook.com/settings/

  2. Select the business account your app is associated with.

  3. Below Users, click System Users.

  1. Click Add button.

  2. Click I accept and Done button.

  1. Name the system username, choose Admin as the user role, and click Create System User button.

  1. Click I accept button and Done.

  1. Before generating the token, you need to assign the asset. Under System users, click Assign assets.

  1. Click Apps, tick your asset, toggle on Full control - Manage app, click Save Changes button, and click Done.

  1. Click Generate New Token, choose the App, and choose Never.

  1. Under Permission, tick the catalog_management, whatsapp_business_management, and whatsapp_business_messaging permission, then click the Generate token button.

  1. Copy your Access token.

  1. 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.

Last updated