Meta (by Facebook)
Before we get started, you will need to have some prerequisites in place from Meta's Business Manager page.
- 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.
- 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.
- You will then need to generate an App Token by navigating to "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.
- Next, you will need to navigate to your Business Manager 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", which will open a new page.
- 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.
- Navigate to Integrations.
- Under "WhatsApp" section, click on the "Meta Facebook" button.
- 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.
- Click on "Test Integration" once done. If the account is successfully connected, you will see a success message.
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:
- Log in to your Meta account.
- Navigate to App Dashboard and find the app you want to connect to and click on it.
- On the page that loads, scroll down to find Webhooks under Add products to your app and Click on Set Up.
- On the new page, select User from the drop-down and click on Subscribe to this Object.
- Subscribe to these topics - 'message_template_quality_update', 'message_template_status_update' and 'messages'. Choose version as v18.0
- 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.
- 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.
Updated 4 months ago