This is a Python Script to Scrape Facebook Marketing API data.
pip install pandas
pip install requests
pip install json
pip install csv
Sign up Facebook Business account in Facebook for Business
Create Target Audience in Facebook Audience
Put Audience ID and Name in facebookdata.csv
python FacebookMarketingApi.py
Set Up Cron Job for regular scraping