title: Facebook login on symfony with sdk 5
body: <p>Hi guys i need your help, i installed facebook sdk with composer on my application, y created a login system, on facebook developer i added my dev domain on localhost <a href="https://devlocalhost.io" rel="nofollow noreferrer">https://devlocalhost.io</a> and my domain from production, so in localhost the loging is working fine, but on production i get this error</p>
  
  <pre><code>Argument 3 passed to GuzzleHttp\Client::request() must be of the type array,   string given, called in /home/user/src/app/vendor/guzzlehttp/guzzle/src/Client.php on line 89
  </code></pre>
  
  <p>here is part of my code,
  on my SecurityController</p>
  
  <pre><code> public function facebookCallback(Request $request,UserPasswordEncoderInterface $encoder)
  {
  
      $fb = $this-&gt;facebook();
      $helper = $this-&gt;fHelper($fb);
  
      try {
          $accessToken = $helper-&gt;getAccessToken();
      } catch(Facebook\Exceptions\FacebookResponseException $e) {
          // When Graph returns an error
          echo 'Graph returned an error: ' . $e-&gt;getMessage();
          exit;
      } catch(Facebook\Exceptions\FacebookSDKException $e) {
          // When validation fails or other local issues
          echo 'Facebook SDK returned an error: ' . $e-&gt;getMessage();
          exit;
      }
  
      if (! isset($accessToken)) {
          if ($helper-&gt;getError()) {
              header('HTTP/1.0 401 Unauthorized');
              echo "Error: " . $helper-&gt;getError() . "\n";
              echo "Error Code: " . $helper-&gt;getErrorCode() . "\n";
              echo "Error Reason: " . $helper-&gt;getErrorReason() . "\n";
              echo "Error Description: " . $helper-&gt;getErrorDescription() . "\n";
          } else {
              header('HTTP/1.0 400 Bad Request');
              echo 'Bad request';
          }
          exit;
      }
  
      // Logged in
  
  
      try {
          // Returns a `Facebook\FacebookResponse` object
          $response = $fb-&gt;get('/me?fields=id,name,email,link,picture', $accessToken-&gt;getValue());
      } catch(Facebook\Exceptions\FacebookResponseException $e) {
          echo 'Graph returned an error: ' . $e-&gt;getMessage();
          exit;
      } catch(Facebook\Exceptions\FacebookSDKException $e) {
          echo 'Facebook SDK returned an error: ' . $e-&gt;getMessage();
          exit;
      }
        $user_info = $response-&gt;getGraphUser();
      //here i create the user on my app or check if the user exist
  
      }
  </code></pre>
  
  <p>So, here are my private method to the Facebook object and helper</p>
  
  <pre><code>private function facebook()
  {
  
      $fb = new Facebook([
          'app_id' =&gt; 'myapp-id', // Replace {app-id} with your app id
          'app_secret' =&gt; 'my-secret',
          'default_graph_version' =&gt; 'v3.1',
      ]);
  
      return $fb;
  }
  private function fHelper($fb)
  {
      $helper = $fb-&gt;getRedirectLoginHelper();
      return $helper;
  }
  
  private function furlLogin()
  {
      $fb = $this-&gt;facebook();
      $helper = $this-&gt;fHelper($fb);
  
      $permissions = ['email']; // Optional permissions
      //$loginUrl = $helper-&gt;getLoginUrl('https://devlocalhost.io/es/fb-callback/', $permissions);
      $loginUrl = $helper-&gt;getLoginUrl('https://my_domain.com/es/fb-callback/', $permissions);
  
      return $loginUrl;
  }
  </code></pre>
  
  <p>so, on local host ys working fine but when i did the deploy os the branch i installed the dependency on server etc, is giving me this error 
  any idea?</p>