title: Dynamic callback url laravel
body: <p>I tried to make my callback url dynamic because I'm configuring socialite in a multi auth system. I tried to use the <code>socialiteproviders/manager</code> as below:</p>
  
  <pre><code>    $clientId = env($provider."_client_id");
      $clientSecret = env($provider."_client_secret");
      $redirectUrl = "the url i want";
      $config = new \SocialiteProviders\Manager\Config($clientId,$clientSecret,$redirectUrl);
      return Socialite::with($provider)-&gt;setConfig($config)-&gt;redirect();
  </code></pre>
  
  <p>but it says: </p>
  
  <blockquote>
    <p>Call to undefined method Laravel\Socialite\Two\FacebookProvider::setConfig() </p>
  </blockquote>
  
  <p>when trying to login with facebook.</p>
  
  <p>Can someone please help me? Thank you.</p>