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.

Tag:facebook, webhooks, facebook-graph-api, facebook-webhooks, facebook-marketing-api

Add a new comment.