Argument 3 passed to GuzzleHttp\Client::request() must be of the type array, string given

后端 未结 2 1994
夕颜
夕颜 2021-02-13 15:31

I\'m experimenting with SammyK/LaravelFacebookSdk. Trying to run this line from example: $response = Facebook::get(\'/me?fields=id,name,email\', \'user-access-token\');

2条回答
  •  -上瘾入骨i
    2021-02-13 15:53

    Due to Facebook SDK 5.x use guzzle version 5. So downgrade the guzzle library will workaround

    $ composer require guzzlehttp/guzzle:~5.0
    

提交回复
热议问题