This library exports insights of Facebook Ads daily. The exported file format is CSV
Installation using Composer
$ composer require faruque/facebook-ads-export
<?php
require __DIR__ . '/vendor/autoload.php';
use FacebookAdsExporter\FacebookAdsExporter;
$facebookAdsExporter = FacebookAdsExporter::create();
$adInsights = $facebookAdsExporter->fetch($date);
$facebookAdsExporter->export($adInsights, $path);
$date = "2016-09-18";
$path = 'facebook-ads-insights.csv';
FacebookAdsExport has been developed by the Safique Ahmed Faruque team.