Laravel Socialite: InvalidStateException

后端 未结 25 1207
感动是毒
感动是毒 2020-11-27 13:56

I\'m using Laravel Socialite to add a Facebook connect button on a website. Sometimes, I\'ve got this error on callback:

exception \'Laravel\\Socialite\\Two\         


        
25条回答
  •  误落风尘
    2020-11-27 14:32

    This issue has nothing to do with a lot of the solutions above, is rather as simple as changing your callback URL from 'http://localhost:8000/callback/twitter to http://127.0.0.1:8000/callback/twitter in your config/services.php and on your twitter app set up on your twitter application.

    the http://localhost in the URL is the issue, replace with http://127.0.0.1

提交回复
热议问题