been trying to get data from the facebook payments reports API, since they say on november 7th no more reports will be sent by email.
tried php and got an error – “SSL connection timeout”.
this is the php curl code i’m using:
$set_action_url = "https://paymentreports.facebook.com/".$company_id."/report?date=".$date."&type=".$type."&access_token=".$company_token;
$ch = curl_init($set_action_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch,CURLOPT_TIMEOUT,5);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT ,0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$result = curl_exec($ch);
i logged the url and query string just before the call, and if i use it in a browser
i do get the file.
what am i doing wrong?
Try to add :