I have my code repo on a dev box and when I moved it to prod box, it was not able to make complete the FB calls. My error is:
ErrorException in Client.php line 126: Argument 3 passed to GuzzleHttp\Client::request() must be of the type array, string given, called in /var/www/mypopshare.com/vendor/guzzlehttp/guzzle/src/Client.php on line 87 and defined
My code for this section is:
return substr($method, -5) === 'Async'
? $this->requestAsync(substr($method, 0, -5), $uri, $opts)
: $this->request($method, $uri, $opts);
The library on both servers is installed via composer: `
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.2.*",
"illuminate/html": "^5.0",
"laravelcollective/html": "^5.2",
"league/flysystem-aws-s3-v3": "~1.0",
"webpatser/laravel-uuid": "^2.0",
"intervention/image": "^2.3",
"doctrine/dbal": "^2.5",
"guzzlehttp/guzzle": "^6.1",
"sammyk/laravel-facebook-sdk": "^3.3"
},
`
That is the same on both environments and have done composer install to make sure they are there.
The call is being made from the Facebook PHP SDK via the sammk/laravel-facebook-sdk package. My only guess is some other configuration difference on the servers, but not sure where to check. I did not configure the prod server. Any suggestions are appreciated.
Facebook\Facebook->get()
– Boyd