Posts tagged with webhooks

Good friends, I wanted to ask you if you know what could cause Messenger webhooks to not run when new messages arrive from users who are not developers or testers of the app. The app already has the following high-level permissions:
pages_messaging public_profile pages_manage_metadata pages_show_list
On the webhook I am subscribed to the events:
messages messaging_postbacks
This is the response from the GET subscribed_apps
{
"data": [
{
"link": "https://app.fazpi.ai/login",
"name": "Fazpi Ai",
"id": "3966317973621834",
"subscribed_fields": [
"messages",
"messaging_postbacks",
"messaging_referrals"
]
}
]
}
If the user who writes to the page is a developer or tester of the app, we receive the message through the webhook, but if the user who writes does not have that role, that is, a real Facebook user, the message does not reach us through the webhook.
Additionally, the Data access renewal has already been completed, the business is verified, the app is in active mode and is not in development.
I would appreciate some guidance.

I’m working on integrating Facebook Webhooks into my website to track real-time updates, but I’m facing an issue where events are not triggering as expected. I’ve set up the endpoint, verified the webhook, and subscribed to the required fields, but still, no data is being sent to my server.
Here’s what I’ve done so far:
Verified the webhook URL using the token.
Subscribed to the feed and messages fields.
Checked server logs – no incoming requests from Facebook.
Has anyone faced a similar issue? Any tips on debugging or common pitfalls I might be missing? For reference, here’s the link to my website where I’m testing the integration: https://telelatino.com.mx/
Looking forward to your insights! Thanks in advance.

My client has an ad agency. I have to develop a comprehensive reporting of all the ads running currently, cost per lead and other details. I don't have much experience with Meta APIs, they have already given me full access to their entire business portfolio, ad accounts and pages.

The problem I am facing is that there does not seem to a straightforward way to achieve this. Even though I have full privileges, I am unable to figure it. This is what I have thought:

  1. get Meta realtime updates through their webhooks.
  2. call Meta API when necessary.

I am stuck on the first step. I am following the instructions on this page: https://developers.facebook.com/docs/graph-api/webhooks/getting-started It asked to do the following two things and I have done it

Create an endpoint on a secure server that can process HTTPS requests. Configure the Webhooks product in your app's App Dashboard. 

Now, to get the updates of Leads, I am following the instructions on the page: https://developers.facebook.com/docs/graph-api/webhooks/getting-started/webhooks-for-leadgen

It asks:

Install your app using your Facebook page 

these are the steps mentioned to install the app on Facebook page but the instructions are broken.

  1. Select your app in the Application dropdown menu. This will return your app's access token.

  2. Click the Get Token dropdown and select Get User Access Token, then choose the pages_manage_metadata permission. This will exchange your app token for a User access token with the pages_manage_metadata permission granted.

  3. Click Get Token again and select your Page. This will exchange your User access token for a Page access token.

  4. Change the operation method by clicking the GET dropdown menu and selecting POST.

  5. Replace the default me?fields=id,name query with the Page's id followed by /subscribed_apps?subscribed_fields=leadgen, then submit the query.

  6. Select your app in the Application dropdown menu. This will return your app's access token. IT doesn't..

  7. in step 2, the moment I select User access Token, a popup opens which asks to reconnect the app. there is no time to choose pages_manage_metadata. cannot move beyond this. I have already tried several things out of frustration, searched on google, ask ChatGPT and Gemini. Nothing seem to work.

I don't understand why this is so difficult and confusing when I have the full rights and doing it just for myself. If I had this public app on which multiple people were able to connect, but just for an in-house things, it seems unnecessarily complicated.

if anyone can, please help.

I'm having a few issues with WhatsApp business API webhook. I've subscribed to the webhook under WhatsApp business account and turned on the messages event as well, but I don't get any notifications when the user sends a message to the business number.

I can say for sure that my server is setup properly to receive calls as the test webhook calls are reaching my server, but nothing when the user sends a message to the associated business number.

I have checked my access token as well for anything and it seems to have the proper permissions associated with in the access token debugger including whatsapp_business_management and whatsapp_business_messaging

Has anyone faced this before?

I have checked my access token as well for anything and it seems to have the proper permissions associated with in the access token debugger including whatsapp_business_management and whatsapp_business_messaging

I have a multi-tenant application where each tenant (client) can manage their products and interact with their customers through WhatsApp. Here’s my setup and the problem I’m facing:

  • I have 70 tenants in my application, and each tenant needs their own WhatsApp bot to communicate with customers.
  • Each bot requires a unique phone number to function.
  • I am using the WhatsApp Business Cloud API and have an account named XYZ.
  • I was able to add two phone numbers to the XYZ account, but I encountered a limitation when trying to add more numbers.
  • Each bot needs to send and receive messages independently, and I also need to process webhook events for each bot separately to handle tenant-specific logic.

Questions:

  1. How can I support 70 tenants, each with a unique phone number and WhatsApp bot, using the WhatsApp Business Cloud API?
  2. Is there a way to overcome the limitation of adding multiple phone numbers to a single WhatsApp Business Account?
  3. How can I set up and handle webhook events efficiently for each tenant in a multi-tenant architecture?

What I’ve Tried:

  • Adding multiple phone numbers to the XYZ account but encountered a limit after two numbers.
  • Researching WhatsApp’s documentation and community forums but couldn’t find a clear solution for this type of multi-tenant setup.

What I Need:

I’m looking for a scalable solution that:

  • Allows each tenant to have their own bot and unique phone number.
  • Ensures webhook events are processed correctly for each tenant, considering their specific logic.