Questions tagged [facebook-business-sdk]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

Getting Instagram post caption used in an Ad in Meta Graph API

I'm retrieving data from Meta Ads using the Graph API. I need to view what is the caption of the Instagram Posts that were advertised - because in these captions there is specific words I must ...
hrosa's user avatar
  • 1
0 votes
0 answers
21 views

Creating Product Sets on Facebook using Graph API or Javascript SDK

I am trying to create product sets from an existing catalogue on facebook. I was able to use nodejs-facebook-business-sdk well so far to fetch the catalogueID, the product ids and other fields from ...
ItsHr0gd's user avatar
0 votes
0 answers
14 views

Uploading data to a Custom dimension META

I'm trying to upload data to a Custom Dimension of META through a Python Script. The amount of data I've got is aboyt 252.000 rows, so I've got to use a batch of 10.000 as Meta says. The problem is ...
jose boto perez's user avatar
1 vote
0 answers
61 views

Getting "Unsupported post request" error when creating Instagram ads campaign via Facebook Graph API

I am trying to create a campaign for posting ads on Instagram using the Facebook Graph API. I am making the following curl request: curl -X POST \ -F 'name="My campaign"' \ -F 'objective=...
Journey's user avatar
  • 11
0 votes
1 answer
107 views

Integrate WhatsApp Product Catalogue to Whats App business api account

I am using the WhatsApp Business API to use my chatbot and I needed to connect the Facebook product catalog to the configured WhatsApp number. Does anyone know what I can do to associate a catalog ...
Luigi Toniolo's user avatar
1 vote
0 answers
120 views

(#100) Missing permissions while access facebook ads data using marketing api using facebook-business sdk

I created a facebook app with the required permission below to read all of my campaign ads data. Section of code: def get_facebook_campaign_data(app_id,app_secret,access_token,account_id,s_date,...
iamabhaykmr's user avatar
  • 1,891
1 vote
0 answers
172 views

FB: System user access token don't have scope delegated from configuration from FB login for Business flow

Steps I followed: Create app Add FB login for Business product in your app Create config with permission & asset I selected - Adaccount, Page, Pixel Javascript SDK window.FB.login( (response) =&...
Chirag MALI's user avatar
0 votes
0 answers
13 views

How to add send Digital Catalogues(example shown in the image below) via Whatsapp Business API?

I'm trying to build a Food Order taking bot in WhatsApp. However I do not see an option to create a message template for publishing food menus as shown in the image below.
Krish's user avatar
  • 51
0 votes
1 answer
87 views

Is there any way to Delete and update Facebook product catalog product with Facebook Graph API

I am trying to to Update and Delete product to facebook product catalog with graph api. I followed this documentation but this endpoint only allow read and create new product to a product catalog but ...
pi3o1416's user avatar
0 votes
0 answers
23 views

Facebook Business SDK for Python does not return video_play_curve_actions field for AdAccount insights

The problem Facebook Insights API does not return the field video_play_curve_actions when using the their Python SDK. More specifically the Async report download method. The same field can be observed ...
Riju's user avatar
  • 1
1 vote
0 answers
22 views

What it's wrong with this code in py using the facebook_business api?

I want to create an app that posts a video to facebook and gets the auto generated caption. from facebook_business.api import FacebookAdsApi from facebook_business.adobjects.video import Video from ...
Felipe Tavares's user avatar
0 votes
0 answers
69 views

I receive a 502 ( Bad Gateway) error when trying to create campaigns with adsets and ads using the Facebook API

I have a Python Django web application, which has an app inside that is used for creating campaigns with adsets and ads using the facebook_business package. The weird thing is that it works fine from ...
TheFrisb's user avatar
0 votes
0 answers
514 views

Facebook marketing API - GraphInsecureException - The cipher AES128-GCM-SHA256 is not supported for TLSv1.2

Facebook marketing API - GraphInsecureException - The cipher AES128-GCM-SHA256 is not supported for TLSv1.2. We are using the Facebook business SDK in our application in order to pull the ad_accounts &...
pavan kalyan's user avatar
3 votes
1 answer
676 views

Not able to create system user for facebook business

I created app at https://developers.facebook.com for WhatsApp Business. To create permanent token (System user access token) , I'm trying to add System user at https://business.facebook.com/ but every ...
Harshad Panmand's user avatar
0 votes
0 answers
109 views

Facebook Business Python SDK: Get Ad Creatives filtered by creation date

I've been experimenting with facebook-python-business-sdk and Facebook Python Graph API. Overall I find them both very useful and easy to navigate through, but I stumbled across a strange issue. When ...
Rafal Kleczek's user avatar
0 votes
0 answers
54 views

How to Retrieve Insights from a AD POST (i.e a post which is boosted in instagram) with the help of Instagram Graph API?

So, i am working on Python code which retrieves a json output. But I can observe that its only showing insights name but all the "AD INSIGHTS" values are missing, EVEN in the facebook-sdk. ...
Nithin's user avatar
  • 5
0 votes
0 answers
63 views

Meta Business API and Cloud API creating issues when trying to send product from a catalogue to whatsapp as an interactive product card

I am trying to create a workflow where based on user queries we send some products from the Facebook business catalog to WhatsApp as a single product and list product card as mentioned in the below ...
PRAKHAR KAUSHIK's user avatar
0 votes
1 answer
140 views

mobile_app_install extracted from Facebook Insights API is different from the dashboard

I want to extract mobile_app_install but the numbers I have got from API seems not correct. It's 1839 by API using Python vs. 1736 in the dashboard. Any advice for this? campaign = Campaign('...
Nhi Yen's user avatar
  • 45
3 votes
0 answers
117 views

Can the Facebook Marketing API return a list of objects that represent each individual click on an ad, including the FBCLID and spend for each click?

So far I've been able to get an overview of the total number of clicks during a specified time period using the Insights API: {"impressions":"5547","spend":"160.53&...
voltzart's user avatar
1 vote
0 answers
266 views

facebook-php-business-sdk getting PHP Fatal error: Uncaught FacebookAds\Http\Exception\AuthorizationException: Invalid parameter in targeting

PHP Fatal error: Uncaught FacebookAds\Http\Exception\AuthorizationException: Invalid parameter in C:\xampp8.0\htdocs\facebook-php-business-sdk\src\FacebookAds\Http\Exception\RequestException.php:174 ...
paras dev's user avatar
0 votes
1 answer
150 views

Facebook Marketing API create Ad Creatives Error

I'm having issues creating Ad Creatives using: gem 'facebookbusiness' Facebook API version 13.0 I have successfully managed to upload Ad Images and to get the image URL and image hash in return. The ...
andkjaer's user avatar
  • 4,005
1 vote
1 answer
164 views

Facebook Business SDK for PHP - Failed sending HTTP request: Header overflow

I am trying to gather a year's worth of data for a select ad account but I get the following exception: FacebookAds\Exception\Exception Failed sending HTTP request: Header overflow The exception ...
jackthedev's user avatar
1 vote
0 answers
527 views

How can I get insight of each level (campaign,adset,ad) in a Facebook ad campaign in single query?

I had created a method to retrieve insight data for each level of the campaign. But the problem is that I use loop to gain insight into each entity, causing my Ad Account-Level Rate Limit to reach its ...
Ash18's user avatar
  • 299
2 votes
1 answer
1k views

Facebook Audience Network Mediation with admob : We haven't received a bid request

Facebook Audience Network Mediation with admob : We haven't received a bid request
Pratham Jindal's user avatar
0 votes
2 answers
2k views

How can I get Facebook's python business SDK to use the latest Ads API version (v13.0)?

When I call the Ads API I get the following error message telling me that I'm calling a deprecated version of the Ads API: "message": "(#2635) You are calling a deprecated version of ...
Alistair's user avatar
  • 463
0 votes
1 answer
803 views

Facebook Business SDK for PHP - Unknown Components

I am trying to access a user via the Facebook Business PHP SDK but I am getting the following error: USER_ID is just a placeholder for my FB ID. FacebookAds\Http\Exception\AuthorizationException ...
jackthedev's user avatar
1 vote
1 answer
992 views

(#2635) You are calling a deprecated version of the Ads API. Please update to the latest version

so there have been a bunch of similar questions, though I haven't managed to find the answer in any of them, so here we are. I'm trying to pull some data from the Facebook API using Python, and at ...
H8oddo's user avatar
  • 123
4 votes
1 answer
3k views

Facebook Marketing/Insights API returns OAuthException with error code 100 missing permissions

Lately, the Facebook Marketing API throws an OAuthException error with code 100/missing permissions. When looking into the Facebook Developer App, nothing indicates that the permissions are missing or ...
Obdam's user avatar
  • 57
0 votes
1 answer
3k views

How to get insights on Facebook Business API using Python?

I have this code below with my credentials; from facebook_business.api import FacebookAdsApi from facebook_business.adobjects.adaccount import AdAccount from facebook_business.adobjects.campaign ...
eduardosteps's user avatar
2 votes
1 answer
935 views

facebook-business | Update from 10->12

Does anyone know what could be causing this depreciation issue (act_******** technically is an actual number, but hiding it from the question)? Message: Call was not successful Method: POST Path:...
CJL89's user avatar
  • 105
3 votes
0 answers
1k views

FB Business verification error - Something went wrong. We're working on getting this fixed as soon as we can. You may be able to try again

I am working on a new business and created my page on FB. I tried to verify my business as per instructions at this link on fb. The instruction article has a hyperlinked for security centre whcih ...
MSP's user avatar
  • 45
1 vote
1 answer
703 views

How to catch *specific* exceptions in Facebook Business Python SDK?

a very simple question, but nonetheless there doesn't appear to be any info on it. I want to wrap a call to Facebook's Marketing API in a try-except statement. As is good practice (I hear), I want to ...
nikUoM's user avatar
  • 659
0 votes
1 answer
702 views

Facebook Marketing API - how to handle rate limit for retrieving *all* ad sets through campaign ids?

I've recently started working with the Facebook Marketing API, using the facebook_business SDK for Python (running v3.9 on Ubuntu 20.04). I think I've mostly wrapped my head around how it works, ...
nikUoM's user avatar
  • 659
2 votes
1 answer
2k views

Integrate WhatsApp Business API with WhatsApp Product Catalogue

We are building a e-retail bot on WhatsApp platform. I would like to understand if there is a possibility to integrate the Whatsapp Business Api with the product catalog option they provide in the ...
Pavan Andhukuri's user avatar
0 votes
2 answers
444 views

Can't get Results of Ad in Business Manager through Marketing API

I use facebook business SDK to get data from facebook business manager by Python. I can get almost all fields using get_insights method, but I can't get Results field. And I don't see it in the ...
zknufk's user avatar
  • 1
0 votes
1 answer
272 views

Can I pull ads from facebook pages that are not mine using facebook api?

I want to develop a web application that pulls the ads that the pages are running on. Those that appear in the ad library. It is possible? Can I pull ads from pages that are not mine? If possible, how ...
Jean Toledo's user avatar
0 votes
1 answer
177 views

How to remove <adinsight> sting from json object from facebook insight API Python

I am making api call via python sdk to get facebook insights dat and I am getting the following response from API. I would like to remove from response json object. can you please guide me how to do ...
shamraiz shehzad's user avatar
1 vote
1 answer
2k views

Facebook Marketing API Ads Insights to CSV in Python

How to export the response of Facebook Marketing API Ads insights to CSV. Below are my code and the response from it. from facebook_business.api import FacebookAdsApi from facebook_business.adobjects....
gm-123's user avatar
  • 238
0 votes
1 answer
1k views

nodejs special characters encoding issue only when hosted in IIS with iisnode module

using express and body-parser with the following setup: const express = require('express'); const bodyParser = require('body-parser'); const app = express(); app.use(bodyParser.json({limit: '100mb', ...
Rune Solberg's user avatar
1 vote
1 answer
2k views

Facebook Business SDK for Python. Is there a way to make async batch calls from this library?

I've been looking for a way to make async batch calls from facebook library in the github repository README file and the documentation provided by facebook. The problem I'm having is that I want to ...
Estuardo Estrada's user avatar
0 votes
1 answer
2k views

Getting error in testing facebook business-sdk

I started with facebook business sdk for php. Was following this doc: https://developers.facebook.com/docs/business-sdk/getting-started/ installed without trouble, then tried testing as they ...
Abir Imtiaz's user avatar
0 votes
1 answer
49 views

How to can I see the allowed Whatsapp Business API solutions providers that have access to my Facebook Business?

I'm looking inside the Facebook Business settings console but I does not have success.
Frederico de Souza's user avatar
2 votes
0 answers
191 views

Is it possible to create system user via /access_token endpoint with Test User access token?

I am developing an application based on On Behalf Of framework. https://developers.facebook.com/docs/marketing-api/business-manager/guides/on-behalf-of To implement the framework we need to create ...
Aidis's user avatar
  • 1,272
0 votes
0 answers
417 views

Facebook Marketing API reach/delivery estimate with budget and time range

I'm making a small tool where my users can place ads on Facebook. Campaign, adset and ad creation is working fine, but i want to show users a small insight what they get for the budget they entered. I'...
K Attila's user avatar
0 votes
1 answer
546 views

How to get Response Headers in Facebook Business SDK

For a Project I need to check the X-App-Usage response Headers to throttle the amount of requests we are doing without running into the rate limiting. How can I get the response headers? I can't find ...
Frederick Behrends's user avatar
0 votes
1 answer
445 views

Permission Error Facebook Custom Conversion Stats

I'm trying to get the custom conversions for a Facebook Business using the Python SDK but I can't seem to make it work. After calling CustomConversion.get_stats(customConversionId) or graph....
pandaboss01's user avatar
3 votes
0 answers
1k views

Can't query instagram user with Graph API

Things were working find until yesterday. I'm developing a simple Instagram app, I made a basic login flow. Now, when I try to log in for the app with a business facebook account I get a message "You ...
Michał Sadowski's user avatar
4 votes
0 answers
593 views

facebook marketing api, cant get draft campaigns, ads and adsets

I trying to build my develop environment to test the facebook marketing api. I have created campaigns and adset and ads as drafts and when I Try to get it as draft I'am using this endpoint ...
Yacov Rosenberg's user avatar
0 votes
0 answers
3k views

Facebook API: Error Creating Ad: Payment disabled for user (error_subcode: 1815010)

We are having an issue with the Marketing API when trying to create Ads in Facebook. The error we are getting is the following: { "error": { "message":"Invalid parameter", "...
Franklin's user avatar
  • 891
5 votes
0 answers
4k views

This endpoint requires the 'manage_pages' permission or the 'Page Public Content Access' feature"

I am using facebook's business onboarding API for my clients to create Facebook ads. The Facebook marketing API version is v4.0 and we are using "PHP facebook graph SDK" for all the API calls. My ...
Jyoti Tambare's user avatar