# Creating a Permanent Access Token

<mark style="color:red;">**Note: The flow and interface may vary depending on each Facebook account. If you encounter any difficulties during this process, please contact the support team for further assistance.**</mark>

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

<figure><img src="https://2425544693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3QW4viTMK6zDjbpEqP2H%2Fuploads%2FEgbF0guVvB55gZiQeYL9%2Fimage.png?alt=media&#x26;token=01ee9632-1c0f-469b-ab0d-485513b02214" alt=""><figcaption></figcaption></figure>

4. Click **Add** button.
5. Click **I accept** and **Done** button.

<figure><img src="https://2425544693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3QW4viTMK6zDjbpEqP2H%2Fuploads%2F0VTdJhi5Smd7XOTI9B5s%2Fimage.png?alt=media&#x26;token=bbc34b6d-7f91-49d5-9d95-47151b44a12a" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2425544693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3QW4viTMK6zDjbpEqP2H%2Fuploads%2F5TtKXkVK2999TqKM2Bde%2Fimage.png?alt=media&#x26;token=8f7a91c8-122b-4b5b-a573-7b9999a78350" alt=""><figcaption></figcaption></figure>

7. Click **I accept** button and **Done.**

<figure><img src="https://2425544693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3QW4viTMK6zDjbpEqP2H%2Fuploads%2FgMESzrbreGpOardiJwzA%2Fimage.png?alt=media&#x26;token=ec9cafff-99ca-4f36-8ed2-3bd74284da51" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2425544693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3QW4viTMK6zDjbpEqP2H%2Fuploads%2FxNO5jbDKODiDMZNLAwxm%2Fimage.png?alt=media&#x26;token=b31a1dfa-dd99-4c85-b7a7-8bc07474fd17" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2425544693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3QW4viTMK6zDjbpEqP2H%2Fuploads%2F6UL1fVlkdLJkOsp3u1dX%2Fimage.png?alt=media&#x26;token=f940d23a-2c8e-4306-aa60-9c95b9a60dd9" alt=""><figcaption></figcaption></figure>

10. Click **Generate New Token**, choose the **App**, and choose **Never**.

<figure><img src="https://2425544693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3QW4viTMK6zDjbpEqP2H%2Fuploads%2FHlSgL5i1IgmXewRzizzb%2Fimage.png?alt=media&#x26;token=8354c19f-a975-4e36-86a2-e062f1af712e" alt=""><figcaption></figcaption></figure>

11. Under Permission, tick the **catalog\_management**, **whatsapp\_business\_management**, and **whatsapp\_business\_messaging** permission, then click the **Generate token** button.

<figure><img src="https://2425544693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3QW4viTMK6zDjbpEqP2H%2Fuploads%2F0hDRU7I4gruP0FTAO9Uq%2Fphoto_2024-06-29_11-48-481.jpg?alt=media&#x26;token=c8fa149b-1974-4cee-ab6e-5cd24ca4f302" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2425544693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3QW4viTMK6zDjbpEqP2H%2Fuploads%2F7ycWw3CSN93ub3M5ukWo%2Fphoto_2024-06-29_11-48-541.jpg?alt=media&#x26;token=7f0884eb-27a8-4747-a2d6-d9e365a6dae1" alt=""><figcaption></figcaption></figure>

12. <mark style="color:red;">**Copy your Access token.**</mark>

<figure><img src="https://2425544693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3QW4viTMK6zDjbpEqP2H%2Fuploads%2FLm7cacBgNoJWxGQNdVdj%2Fimage.png?alt=media&#x26;token=e33976c9-1880-43a8-9b83-bb357c9ffbc9" alt=""><figcaption></figcaption></figure>

13. Then paste it into the Kuasa settings (Whatsapp integration > Whatsapp Official) (<https://campaigns.kuasa.io/whatsapp-integration.php>).

<figure><img src="https://2425544693-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3QW4viTMK6zDjbpEqP2H%2Fuploads%2FBdDcpV1Gd6OUKRUU4EpD%2Fimage.png?alt=media&#x26;token=b76ddffa-b1a9-4104-a82a-3933b9838c1f" alt=""><figcaption></figcaption></figure>

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.
