I'm developing an application to capture leads from a Facebook lead form. Here's what I've done so far:

  1. I created an App in the Facebook Developer Dashboard.
  2. I verified the webhook for this app, and the verification was successful.
  3. I have obtained advanced access for the following permissions: leads_retrieval, pages_show_list, pages_manage_metadata.
  4. I have enabled the User object and subscribed to leadgen events.
  5. I tested the webhook, and it's sending test leads in the response as expected.
  6. My app is in Live mode.

However, when a real lead is created on Facebook, I'm receiving the following response instead of the actual lead data:

{   "entry": [     {       "id": "0",       "time": 1724921046,       "changes": [         {           "field": "leadgen",           "value": {             "ad_id": "444444444",             "form_id": "444444444444",             "leadgen_id": "444444444444",             "created_time": 1724921046,             "page_id": "444444444444",             "adgroup_id": "44444444444"           }         }       ]     }   ],   "object": "page" } 

What could I be doing wrong, and how can I start receiving real lead data instead of this mock response?

this is screen shot of my app:- App details:- Permission Details:- Webhook Details:-

I have been working with the Google Ads API to generate keyword ideas using the Keyword Planner. The script works perfectly fine on macOS, and I've tested it on multiple Mac machines without any issues. However, when I try to run the same script on an Ubuntu machine, it fails with the following error:

root@545d9b292810:/app# python3 generate_keyword_ideas.py --customer_id 473727 Traceback (most recent call last):   File "/usr/local/lib/python3.8/dist-packages/google/ads/googleads/client.py", line 203, in _get_api_services_by_version     version_module = import_module(f"google.ads.googleads.{version}")   File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module     return _bootstrap._gcd_import(name[level:], package, level)   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import   File "<frozen importlib._bootstrap>", line 991, in _find_and_load   File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked ModuleNotFoundError: No module named 'google.ads.googleads.v17' During handling of the above exception, another exception occurred: Traceback (most recent call last):   File "generate_keyword_ideas.py", line 176, in <module>     main(   File "generate_keyword_ideas.py", line 38, in main     keyword_plan_idea_service = client.get_service("KeywordPlanIdeaService")   File "/usr/local/lib/python3.8/dist-packages/google/ads/googleads/client.py", line 356, in get_service     api_module = self._get_api_services_by_version(version)   File "/usr/local/lib/python3.8/dist-packages/google/ads/googleads/client.py", line 205, in _get_api_services_by_version     raise ValueError( ValueError: Specified Google Ads API version "v17" does not exist. Valid API versions are: "v11", "v10", "v9" 

What I've Tried: I have confirmed that the Google Ads API library version 17.0.0 is installed on both macOS and Ubuntu. The Python version on Ubuntu is 3.8, and I ensured that all dependencies are correctly installed. I’ve tried reinstalling the google-ads package and even setting up a fresh virtual environment. The script works flawlessly on macOS, so the issue seems to be specific to Ubuntu.

The script should run on Ubuntu just as it does on macOS without throwing the "Specified Google Ads API version 'v17' does not exist" error.

Specifications: Python version: 3.8 on Ubuntu Google Ads API library version: 17.0.0 OS: Ubuntu 20.04

Here are the steps I took to get access_token

// Init FB SDK const loadSdk = () => {     window.fbAsyncInit = function () {         window.FB.init({             appId: "218446344509498",             cookie: true,             xfbml: true,             version: "v19.0",         });     };     if (!document.getElementById("facebook-jssdk")) {         const js = document.createElement("script");         js.id = "facebook-jssdk";         js.src = `https://connect.facebook.net/en_US/sdk.js`;         document.body.appendChild(js);     } }; loadSdk(); 

Then I opened the popup that I need for whatsapp embedded sign up

window.FB.login((response) => {     if (response.authResponse) {         const code = response?.authResponse?.code;         console.log(code)     } }, {     config_id: <config-id>, // configuration ID goes here     response_type: "code",     override_default_response_type: true,     scope: 'business_management, whatsapp_business_management, whatsapp_business_messaging', }) 

When I code the code I retrieved my access_token on the server side using the following API

https://graph.facebook.com/v20.0/oauth/access_token?client_id=<client-id>&client_secret=<client-secret&code=<code-i-previously-retrived> 

This returns me an access token that seems to be working with Meta APIs /me, //owned_whatsapp_business_accounts But it returns empty arrays or objects.

When I do the same thing from Meta explorer (select permissions, generate token, copy that token and use, it works)

I have been trying to solve this since many days and not sure where I am doing the mistake.

I want to generate token with correct permissions (it looks like I am doing it because authentication popup also mentions the permissions I requested), and want to able to fetch information from it not empty array

just wondering if someone can help me with this issue: I am trying to run a code in a lambda function and I have created a layer for this using a docker to create the needed libs:

# Use an official Amazon w/python3 FROM public.ecr.aws/lambda/python:3.9 # Create and activate a virtual environment RUN python3.9 -m venv /app/venv ENV PATH="/app/venv/bin:$PATH" # Install required packages COPY . . RUN pip3 install --upgrade pip RUN pip3 install --platform manylinux2014_x86_64 --target ./venv/lib/python3.9/site-packages --python-version 3.9 --only-binary=:all:  -r requirements.txt 
when i upload the function code and test it i am receiving this error: [ERROR] Runtime.ImportModuleError: Unable to import module 'google_conversion_lambda': google-ads Traceback (most recent call last):INIT_REPORT Init Duration: 3853.19 ms Phase: init Status: error   Error Type: Runtime.Unknown [ERROR] Runtime.ImportModuleError: Unable to import module 'google_conversion_lambda': google-ads Traceback (most recent call last):INIT_REPORT Init Duration: 25715.69 ms    Phase: invoke   Status: error   Error Type: Runtime.Unknown 

the import is coded like this:

from google.ads.googleads.client import GoogleAdsClient 

its is weird and I am running out of ideas to try. Any suggestions or other leads that I can try?

I already tried:

  1. On the code Zip file include all the google libraries needed along with the function.
  2. Rebuilding as a layer, with other building methods using the docker.

Both shows the same results.

EDIT: Just to let you know the issue here is that I was zipping the files on a windows environment and even the zipping process should happen inside the docker environment (Linux) after that we are good to export the zip file and update the layer.

We are experiencing issues with the Instagram Basic Display API and would appreciate any insight or assistance from the community.
Issue Description. When making a GET request to https://graph.instagram.com/v19.0/me on the Instagram Basic Display API, the error in the attached capture occurs. The HTTP Status Code returns a 500 Internal Server Error. This issue occurred at 21:10 UTC on 8/27/2024 and is still ongoing. Currently, user information cannot be Acquisition.
Also, the application mode is in live mode and public_profile and instagram_graph_user_profile are allowed advanced access.
Has anyone encountered this issue or know of a solution? Any information about possible causes or workarounds would be appreciated. Best regards!