Source: https://fyno.docs.pageloop.ai/documentation/core-features/integrations/whats-app/meta

# Meta

Before we get started, you will need to have some prerequisites in place from Meta's Business Manager page.

1. Get added to the business by your Business Admin. If you are not an Admin for the Facebook Business page, request the admin to add you as "Employee Access" from the [People page](https://business.facebook.com/settings/people/).
2. Once you have received the invite and activated your account, you will also need to have access to the app, which your Meta Admin can provide. On the People page, click on "**Add Asset"**, navigate to "**Apps**", select the App from the list and provide access to Manage apps by toggling the radio button and saving.
3. You will then need to generate an App Token by navigating to "[System Users](https://business.facebook.com/settings/system-users/)" and click on "Generate New Token". This will be your "Access Token" on Fyno's App. Provide access to "WhatsApp Business Messaging" and "WhatsApp Business Management" and generate the token.
4. Next, you will need to navigate to your [Business Manager](https://business.facebook.com/settings/apps) page and choose the business you want to integrate. Select "**Apps**" under "**Accounts**" and find the App you are integrating on the page that appears. On the top right corner, find "**[Open in App Dashboard](https://developers.facebook.com/apps/)**", which will open a new page.
5. Find "**Getting Started**" under "**WhatsApp**" from the left navigation panel. In the "Send and Receive Message", find the number you want to use in the "Phone Number" drop-down and select it. This will display the "Phone Number ID" right below the drop-down menu. This will be your "Phone Number ID" on Fyno's App.

Once you have followed the above steps, or have the needed information, we can integrate Meta into Fyno's app by following the steps below.

1. **Find the Provider**

   Navigate to the Integrations page. Under "WhatsApp" section, click on the "Meta Facebook" button.
2. **Configure the Integration**

   In the pop-up that appears, fill in:
   - **Custom name:** Provide a name to help you identify the configured account in Fyno's portal.
   - **Phone Number ID**: This can be found in Meta's App Dashboard, as explained in step 4 above.
   - **Access Token**: This can be found on Meta's Business Manager page, by following steps 1 - 3, mentioned above.
   - **WhatsApp Business Account Id (WABA Id)** : You will get it from Business Settings -> Accounts -> WhatsApp accounts -> Account Name. On top right corner, you will find WABA Id.
3. **Complete the Integration**

   Click on "Add Account" once done, and you are all set!

## How to add WhatsApp number and verify for Incoming messages

1. Enter the WhatsApp number (with country code) for which you want to enable incoming messages in the Whatsapp number field
2. Click 'Update Account'.
3. Once the account is updated, you will see a CTA 'Enable Incoming Message' as shown. ![](/images/whatsapp_enable_incoming_updated.png)
4. You can either manually send the message shown to the Whatsapp added or you can scan the QR code shown. ![](/images/whatsapp_verify_incoming_updated.png)
5. You will receive a message as shown in your WhatsApp number ![](/images/whatsapp_verify_message_updated.png)
6. Click 'Enable Incoming' CTA in the Whatsapp message.
7. Once your number is enabled, you will see a success message as shown.![](/images/whatsapp_incoming_verified.png)&#x20;
8. The whatsapp number is enabled to receive Incoming messages and it be shown as shown in the Integration page.

## Message Delivery Status

While Fyno has the capacity to track the notification delivery status, Meta (by Facebook) requires a manual update of the Fyno Callback Endpoint in order to receive these reports. To update the Callback manually follow these steps:

1. Log in to your Meta account.
2. Navigate to **[App Dashboard](https://developers.facebook.com/apps/)** and find the app you want to connect to and click on it.
3. On the page that loads, scroll down to find **Webhooks** under **Add products to your app** and Click on **Set Up**.
4. On the new page, select **User** from the drop-down and click on **Subscribe to this Object**.
5. Subscribe to these topics - 'message\_template\_quality\_update', 'message\_template\_status\_update' and 'messages'. Choose version as v18.0
6. Enter the Callback URL provided in the Meta Integration popup in the **Callback URL** field and enter a string in the **Verify Token** field. This will be relayed to you by Meta for all your verification requests. 'Verify Token' can be any string.
7. Test your integration by sending a message from the Fyno App. You will be able to see the delivery details now on the **Delivery** tab under **Sent logs**.
