I have been playing with this now for a week and can't seems to find a solution. Whatsapp Business API is set up and working 100% in Live. I have verified my Webhook but are not able to see any data coming into the webhook file since the verification. Many variations of code have been tried to get data but still I don't see any data on the file, even when testing from the Quickstart > Configuration page.

The code I am currently running is from an answer provided by @Tarik at the following post: (for facebook itself but coding is the same) Facebook Messenger API - Can't verify webhook URL (PHP)

My webhook.php file is:

$message = date('Y-m-d H:i:s'); foreach ($_REQUEST as $key => $value){     $message .= "$key => $value (".$_SERVER['REQUEST_METHOD'].")\n"; } $input = file_get_contents("php://input"); $array = print_r(json_decode($input, true), true); file_put_contents('log.txt', $message.$array."\nREQUEST_METHOD: $_SERVER[REQUEST_METHOD]\n----- Request Date: ".date("d.m.Y H:i:s")." IP: $_SERVER[REMOTE_ADDR] -----\n\n", FILE_APPEND); if ( isset($_REQUEST['hub_challenge']) ){     echo $_REQUEST['hub_challenge']; } 

When sending a test from the Webhook Configuration page, the log.txt file only returns this:

2024-08-08 13:17:38 REQUEST_METHOD: GET ----- Request Date: 08.08.2024 13:17:38 IP: 173.252.107.116 ----- 

I am a bit stuck here and also lost on ideas. Can anyone advise me how to actually read the data I should receive on the webhook? I was considering playing with the verification token to see if Meta require it for some sort of asynchronous communication but that don't seem to be the case. Any assistance will be appreciated.

I haven't found any examples for using FacebookClient to upload photos to a Facebook page in C#. I tried using the JavaScript SDK, but it exposes a lot of functionality I don't need. I'm implementing the upload functionality with FacebookClient in my custom Facebook service.

I'm encountering issues, and the photo needs to be under 4 MB and in JPG, PNG, GIF, TIFF, or HEIF format. Can anyone provide guidance or examples for this specific scenario?

Using the below end point my page token returns posts from the page:
https://graph.facebook.com/v18.0/{PAGEID}/feed?fields=id,created_time,message,status_type,from,place,picture,attachments&limit=100&access_token={TOKEN}
If I then take the post id from this return and try and get comments for it using the following end point I am getting (#200) Missing Permissions. https://graph.facebook.com/v18.0/{POSTID}/comments?limit=100&fields=created_time,from,comment_count,message,attachment&access_token={TOKEN}&order=chronological
But I am not being told what permissions are missing, and why I cannot get comments. This is also not always the case, this exact scenario works in many other cases, so there is an issue somewhere with the access of the user/page, rather than my process..... But I have no idea what, or how to find out.
If I look at the permission in the access token using the token access debugger tool, we have the following: pages_show_list, business_management, pages_read_engagement, pages_read_user_content, pages_manage_posts, public_profile
and my understanding from reading the documentation is that I just need this one: pages_read_user_content to read comments.
I am so confused.
Any help or suggestions of things I can try would be greatly appreciated. if only the error was more useful, and told me what I was missing, I could have a better idea of how to fix.
Thanks in advance

I am trying to use Facebook Graph API Explorer to get a page access token to a specific page.

But upon selecting the page I need, I am redirected to this new chrome tab:

And after clicking "Done", I don't see this page inside the "Get Token" tab

while finding solution, I read here https://developers.facebook.com/docs/facebook-login/guides/access-tokens/ that to obtain a page access token, I need to start obtaining a user access token

So here is what I did,I clicked "Get user access token"

I did the same thing, I authorized everything and clicked "Done" but the page is still not in the "Get Token" Tab.

I own and created this pages and I have connected it to my business portfolio in https://business.facebook.com/ using the same business I am using with the meta developer app but for some reason it's not appearing in Facebook Graph API Explorer. Please help me get access this pages in graph API Explorer. Thank you

I have created this code to fetch leads from Facebook:

import pandas as pd from facebook_business.api import FacebookAdsApi from facebook_business.adobjects.adaccount import AdAccount from facebook_business.adobjects.ad import Ad from facebook_business.adobjects.user import User from facebook_business.adobjects.lead import Lead import requests from datetime import datetime import time # Permanent Access Token access_token = "my_token" facebook_api = FacebookAdsApi.init(access_token=access_token) start_date = '2023-07-01'  end_date = '2023-07-31'  account_id = "my_ad_account_id" lead_fields = ['campaign_name',"created_time","field_data"] lead_params = {                 'filtering': [{'field': 'time_created', 'operator': 'GREATER_THAN', 'value': start_date},                               {'field': 'time_created', 'operator': 'LESS_THAN', 'value': end_date}                              ]               } leads_list = [] # Getting ads ad_account = AdAccount(account_id) ads = ad_account.get_ads() for ad in ads:   leads = ad.get_leads(fields=lead_fields,params=lead_params)   for lead in leads:     lead_dic = {}     lead_dic["campaign_name"] = lead["campaign_name"]     lead_dic["created_time"] = lead["created_time"]     field_data = lead["field_data"]     for field in field_data:       lead_dic[field["name"]] = field["values"][0]     leads_list.append(lead_dic) print(leads_list) 

It works for my test account that has few ads, but I get an limit error when I try to use it with my main account.

I figure that I should use batch request, but I could not make it work. Can someone please help to to adapt this code so it does not get limit errors?