title: How to fix 'Facebook has detected MyApp isn't using a secure connection to transfer information.' error in Laravel
body: <p><a href="https://i.stack.imgur.com/Ok9VA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Ok9VA.png" alt="enter image description here"></a></p>
  
  <p>I am trying to connect my app to facebook login with Laravel and socialite package.But i don't know why facebook show me this error. I searched internet but i couldn't find anything .How can i fix this error ?</p>
  
  <p>I thought that if i make my connection with https it will work but after making https again error appears. </p>
  
  <p>My code in laravel: <br></p>
  
  <p>web.php</p>
  
  <pre><code>Route::get('login/{provider}', 'SocialController@redirect');
  Route::get('login/{provider}/callback','SocialController@Callback');
  </code></pre>
  
  <p>SocialController.php</p>
  
  <pre><code>    public function redirect($provider)
      {
          return Socialite::driver($provider)-&gt;redirect();
      }
  
      public function Callback($provider){
  
          $userSocial =   Socialite::driver($provider)-&gt;stateless()-&gt;user();
          $users       =   User::where(['email' =&gt; $userSocial-&gt;getEmail()])-&gt;first();
          if($users){
              Auth::login($users);
              return redirect('/');
          }else{$user = User::create([
                  'username'          =&gt; $userSocial-&gt;getName(),
                  'email'         =&gt; $userSocial-&gt;getEmail(),
                  'provider_id'   =&gt; $userSocial-&gt;getId(),
                  'provider'      =&gt; $provider,
              ]);
              return redirect()-&gt;route('home');
          }
      }
  </code></pre>