In your Business Portfolio (business.facebook.com), go to the System users section and click +Add. A form for creating a new system user will open. Choose a name and role for the user. The Employee role is sufficient. Once you have filled out the form, click Create system user.
After creating a System user, you will need to assign permissions to the created developer application and WA business account.
For the created System user, click the three dots and the Assign assets button. A form for assigning permissions will appear. In the Apps tab, select your created developer app and assign all permissions: Full control → Manage app.
Next, go to the WhatsApp accounts tab and select the WA Business account associated with your phone number (the one you created at the end of the previous section of this article). Grant it all permissions: Full control → Manage WhatsApp business accounts. Then click Assign assets to assign the permissions.
Next, proceed to create an access token using this system user. Click on Generate token. A form for generating an access token will appear. In the first step, select your developer application.
Set the token expiration to Never (never).
In the next step, add the following permissions:
- whatsapp_business_management
- whatsapp_business_messaging
In the final step, a permanent access token will be generated for you. Before closing the window, copy and save this token. Once the window is closed, you will no longer be able to view this token and will need to generate a new one.