{"action":"opened","issue":{"url":"https://api.github.com/repos/facebook/facebook-php-ads-sdk/issues/412","repository_url":"https://api.github.com/repos/facebook/facebook-php-ads-sdk","labels_url":"https://api.github.com/repos/facebook/facebook-php-ads-sdk/issues/412/labels{/name}","comments_url":"https://api.github.com/repos/facebook/facebook-php-ads-sdk/issues/412/comments","events_url":"https://api.github.com/repos/facebook/facebook-php-ads-sdk/issues/412/events","html_url":"https://github.com/facebook/facebook-php-ads-sdk/issues/412","id":294508336,"number":412,"title":"CurlAdapter failed","user":{"login":"bmbraga","id":23003286,"avatar_url":"https://avatars1.githubusercontent.com/u/23003286?v=4","gravatar_id":"","url":"https://api.github.com/users/bmbraga","html_url":"https://github.com/bmbraga","followers_url":"https://api.github.com/users/bmbraga/followers","following_url":"https://api.github.com/users/bmbraga/following{/other_user}","gists_url":"https://api.github.com/users/bmbraga/gists{/gist_id}","starred_url":"https://api.github.com/users/bmbraga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmbraga/subscriptions","organizations_url":"https://api.github.com/users/bmbraga/orgs","repos_url":"https://api.github.com/users/bmbraga/repos","events_url":"https://api.github.com/users/bmbraga/events{/privacy}","received_events_url":"https://api.github.com/users/bmbraga/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-05T19:10:39Z","updated_at":"2018-02-05T19:10:39Z","closed_at":null,"author_association":"NONE","body":"Can someone help me with this error?\r\nI've done several tests and nothing happens.\r\n\r\nPHP Notice:  Use of undefined constant STDOUT - assumed 'STDOUT' in _libs/facebook-ads-sdk/FacebookAds/Logger/CurlLogger.php on line 84\r\nPHP Warning:  fwrite() expects parameter 1 to be resource, string given in _libs/facebook-ads-sdk/FacebookAds/Logger/CurlLogger.php on line 199\r\nPHP Fatal error:  Uncaught FacebookAds\\\\Exception\\\\Exception in _libs/facebook-ads-sdk/FacebookAds/Http/Adapter/CurlAdapter.php:196\\nStack trace:\\n#0 _libs/facebook-ads-sdk/FacebookAds/Http/Client.php(204): FacebookAds\\\\Http\\\\Adapter\\\\CurlAdapter->sendRequest(Object(FacebookAds\\\\Http\\\\Request))\\n#1 _libs/facebook-ads-sdk/FacebookAds/Http/Request.php(282): FacebookAds\\\\Http\\\\Client->sendRequest(Object(FacebookAds\\\\Http\\\\Request))\\n#2 _libs/facebook-ads-sdk/FacebookAds/Api.php(162): FacebookAds\\\\Http\\\\Request->execute()\\n#3 _libs/facebook-ads-sdk/FacebookAds/Api.php(204): FacebookAds\\\\Api->executeRequest(Object(FacebookAds\\\\Http\\\\Request))\\n#4 _libs/facebook-ads-sdk/FacebookAds/ApiRequest.php(183): FacebookAds\\\\Api->call('/act_6030462131...', 'GET', Array, Array)\\n#5 _libs/facebook-ads-sdk/FacebookAds/Object/AdAccount.php(1368): FacebookAds\\\\ApiRequest->execute in _libs/facebook-ads-sdk/FacebookAds/Http/Adapter/CurlAdapter.php on line 196\r\n\r\n\r\n\r\n`$access_token = '...';\r\n$ad_account_id = '...';\r\n$app_secret = '...';\r\n$app_id = '...';\r\n\r\n$api = Api::init($app_id, $app_secret, $access_token);\r\n$api->setLogger(new CurlLogger());\r\n\r\n$fields = array(\r\n  'delivery'\r\n);\r\n$params = array(\r\n);\r\necho json_encode((new AdAccount($ad_account_id))->getInsights(\r\n  $fields,\r\n  $params\r\n)->getResponse()->getContent(), JSON_PRETTY_PRINT);\r\n\r\nvar_export((new AdAccount($ad_account_id)));`"}}
{"actor":{"display_login":"bmbraga"}}