Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling a Facebook API
#1
Good morning. I am new in Python and in Facebook.

I need to build a python program to retrieve some information from facebook. Data I have is:
Business Manager ID
Account IDs for New Customers, Current Customers, Quarantine, Mobile, International.

And of course the token.

This is a command line that someone provided me:
curl -i -X POST \
-d "report_type=DPA_INSIGHT" \
-d "parameters={\"ad_account\":\"<adaccount_id>\", \"date_id\":\"2017-01-01\"}"
\
-d "access_token=<access_token>" \
"https://graph.facebook.com/v2.8/<business_id>/measurement_playground"


My question is what is the python code I should use in order to make this works ? I don't want to use the curl command line. Instead of this, I want to use python code directly.

Thanks a lot in advance.

Guillermo - Buenos Aires - Argentina
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Issues Scraping Facebook using facebook_scraper DustinKlent 4 3,547 Mar-19-2024, 08:17 PM
Last Post: Mostafa_heikal
  DELETE Post using Python FaceBook Graph API BIG_PESH 0 1,423 Mar-24-2022, 08:28 PM
Last Post: BIG_PESH
  Delete multiple comments with a single API call (facebook) Ascalon 0 2,268 Dec-04-2021, 08:33 PM
Last Post: Ascalon
  How to add an image to an existing facebook post using python graph API? Ascalon 0 2,180 Dec-01-2020, 08:33 PM
Last Post: Ascalon

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020