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

后端 未结 2 1213
别那么骄傲
别那么骄傲 2021-02-13 15:39

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条回答
  • 2021-02-13 15:51

    I've get the same problem. Changing indexes won't work for me, but I've found a workaround. Installing php-curl extension switches a whole workflow thru cURL, so the problem is vanished.

    0 讨论(0)
  • 2021-02-13 15:59

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

    $ composer require guzzlehttp/guzzle:~5.0
    
    0 讨论(0)
提交回复
热议问题