{"action":"created","issue":{"url":"https://api.github.com/repos/SammyK/LaravelFacebookSdk/issues/156","repository_url":"https://api.github.com/repos/SammyK/LaravelFacebookSdk","labels_url":"https://api.github.com/repos/SammyK/LaravelFacebookSdk/issues/156/labels{/name}","comments_url":"https://api.github.com/repos/SammyK/LaravelFacebookSdk/issues/156/comments","events_url":"https://api.github.com/repos/SammyK/LaravelFacebookSdk/issues/156/events","html_url":"https://github.com/SammyK/LaravelFacebookSdk/issues/156","id":201847186,"number":156,"title":"Guzzle and PHP 7.0","user":{"login":"joelbanzatto","id":1151054,"avatar_url":"https://avatars.githubusercontent.com/u/1151054?v=3","gravatar_id":"","url":"https://api.github.com/users/joelbanzatto","html_url":"https://github.com/joelbanzatto","followers_url":"https://api.github.com/users/joelbanzatto/followers","following_url":"https://api.github.com/users/joelbanzatto/following{/other_user}","gists_url":"https://api.github.com/users/joelbanzatto/gists{/gist_id}","starred_url":"https://api.github.com/users/joelbanzatto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelbanzatto/subscriptions","organizations_url":"https://api.github.com/users/joelbanzatto/orgs","repos_url":"https://api.github.com/users/joelbanzatto/repos","events_url":"https://api.github.com/users/joelbanzatto/events{/privacy}","received_events_url":"https://api.github.com/users/joelbanzatto/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-19T12:28:01Z","updated_at":"2017-01-19T12:56:37Z","closed_at":null,"body":"I am trying to make it works in a DigitalOcean droplet. I am running NGINX 1.10 with PHP 7.0 and I've got the following error on  my laravel.log:\r\n\r\n`[2017-01-19 03:32:14] production.ERROR: Symfony\\Component\\Debug\\Exception\\FatalThrowableError: Type error: Argument 3 passed to GuzzleHttp\\Client::request() must be of the type array, string given, called in /var/www/html/rotaer/vendor/guzzlehttp/guzzle/src/Client.php on line 87 in /var/www/html/rotaer/vendor/guzzlehttp/guzzle/src/Client.php:126\r\nStack trace:\r\n#0 /var/www/html/rotaer/vendor/guzzlehttp/guzzle/src/Client.php(87): GuzzleHttp\\Client->request('createRequest', 'GET', 'https://graph.f...')\r\n#1 /var/www/html/rotaer/vendor/facebook/graph-sdk/src/Facebook/HttpClients/FacebookGuzzleHttpClient.php(61): GuzzleHttp\\Client->__call('createRequest', Array)\r\n#2 /var/www/html/rotaer/vendor/facebook/graph-sdk/src/Facebook/FacebookClient.php(216): Facebook\\HttpClients\\FacebookGuzzleHttpClient->send('https://graph.f...', 'GET', '', Array, 60)\r\n#3 /var/www/html/rotaer/vendor/facebook/graph-sdk/src/Facebook/Facebook.php(469): Facebook\\FacebookClient->sendRequest(Object(Facebook\\FacebookRequest))\r\n#4 /var/www/html/rotaer/vendor/facebook/graph-sdk/src/Facebook/Facebook.php(338): Facebook\\Facebook->sendRequest('GET', '/me?fields=id,n...', Array, 'EAADThB1J2LIBAM...', NULL, 'v2.8')\r\n#5 /var/www/html/rotaer/app/Http/Controllers/APIController.php(171): Facebook\\Facebook->get('/me?fields=id,n...', 'EAADThB1J2LIBAM...')\r\n#6 [internal function]: App\\Http\\Controllers\\APIController->login(Object(Illuminate\\Http\\Request))\r\n#7 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(55): call_user_func_array(Array, Array)\r\n#8 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(44): Illuminate\\Routing\\Controller->callAction('login', Array)\r\n#9 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Routing/Route.php(189): Illuminate\\Routing\\ControllerDispatcher->dispatch(Object(Illuminate\\Routing\\Route), Object(App\\Http\\Controllers\\APIController), 'login')\r\n#10 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Routing/Route.php(144): Illuminate\\Routing\\Route->runController()\r\n#11 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Routing/Router.php(653): Illuminate\\Routing\\Route->run(Object(Illuminate\\Http\\Request))\r\n#12 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Routing\\Router->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))\r\n#13 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(41): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))\r\n#14 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(137): Illuminate\\Routing\\Middleware\\SubstituteBindings->handle(Object(Illuminate\\Http\\Request), Object(Closure))\r\n#15 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(33): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\r\n#16 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php(49): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))\r\n#17 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(137): Illuminate\\Routing\\Middleware\\ThrottleRequests->handle(Object(Illuminate\\Http\\Request), Object(Closure), '60', '1')\r\n#18 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(33): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\r\n#19 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))\r\n#20 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Routing/Router.php(655): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\r\n#21 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Routing/Router.php(629): Illuminate\\Routing\\Router->runRouteWithinStack(Object(Illuminate\\Routing\\Route), Object(Illuminate\\Http\\Request))\r\n#22 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Routing/Router.php(607): Illuminate\\Routing\\Router->dispatchToRoute(Object(Illuminate\\Http\\Request))\r\n#23 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(268): Illuminate\\Routing\\Router->dispatch(Object(Illuminate\\Http\\Request))\r\n#24 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(53): Illuminate\\Foundation\\Http\\Kernel->Illuminate\\Foundation\\Http\\{closure}(Object(Illuminate\\Http\\Request))\r\n#25 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(46): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))\r\n#26 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(137): Illuminate\\Foundation\\Http\\Middleware\\CheckForMaintenanceMode->handle(Object(Illuminate\\Http\\Request), Object(Closure))\r\n#27 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php(33): Illuminate\\Pipeline\\Pipeline->Illuminate\\Pipeline\\{closure}(Object(Illuminate\\Http\\Request))\r\n#28 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(104): Illuminate\\Routing\\Pipeline->Illuminate\\Routing\\{closure}(Object(Illuminate\\Http\\Request))\r\n#29 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(150): Illuminate\\Pipeline\\Pipeline->then(Object(Closure))\r\n#30 /var/www/html/rotaer/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(117): Illuminate\\Foundation\\Http\\Kernel->sendRequestThroughRouter(Object(Illuminate\\Http\\Request))\r\n#31 /var/www/html/rotaer/public/index.php(60): Illuminate\\Foundation\\Http\\Kernel->handle(Object(Illuminate\\Http\\Request))\r\n#32 {main}`"},"comment":{"url":"https://api.github.com/repos/SammyK/LaravelFacebookSdk/issues/comments/273769800","html_url":"https://github.com/SammyK/LaravelFacebookSdk/issues/156#issuecomment-273769800","issue_url":"https://api.github.com/repos/SammyK/LaravelFacebookSdk/issues/156","id":273769800,"user":{"login":"joelbanzatto","id":1151054,"avatar_url":"https://avatars.githubusercontent.com/u/1151054?v=3","gravatar_id":"","url":"https://api.github.com/users/joelbanzatto","html_url":"https://github.com/joelbanzatto","followers_url":"https://api.github.com/users/joelbanzatto/followers","following_url":"https://api.github.com/users/joelbanzatto/following{/other_user}","gists_url":"https://api.github.com/users/joelbanzatto/gists{/gist_id}","starred_url":"https://api.github.com/users/joelbanzatto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelbanzatto/subscriptions","organizations_url":"https://api.github.com/users/joelbanzatto/orgs","repos_url":"https://api.github.com/users/joelbanzatto/repos","events_url":"https://api.github.com/users/joelbanzatto/events{/privacy}","received_events_url":"https://api.github.com/users/joelbanzatto/received_events","type":"User","site_admin":false},"created_at":"2017-01-19T12:56:37Z","updated_at":"2017-01-19T12:56:37Z","body":"Googling I found this:\r\n\r\nhttp://stackoverflow.com/questions/37161355/argument-3-passed-to-guzzlehttp-clientrequest-must-be-of-the-type-array-str\r\n\r\nI installed php7.0-curl extension and the problem is gone.\r\n\r\nThanks!"}}
{"actor":{"display_login":"joelbanzatto"}}