cretueusebiu/laravel-nuxt

Laravel socialite not working in facebook app's browser

shahrizal96 opened this issue · 0 comments

  • Socialite Version: ^5.1.0
  • Laravel Version: ^7.0
  • PHP Version: 7.4.7
  • Database Driver & Version:

Description:

First of all thanks for the awesome template.

I currently develop web app using vue+nuxt (frontend) and laravel(backend) based on your template. Currently having problem with laravel socialite when browse using mobile facebook application's browser for both ios and android. Its working fine when using web browser such as chrome and etc.

When I click the button (login with facebook) it direct to api that handle callback. However its stuck at that page (blank white page). Then I check sentry and got error "Invalid verification code format" then when refresh got error "This authorization code has been used" where I know where it come from for first error I have no idea.

Here I attach image for the error, code for handle provider, laravel view callback and vue handle login button.

ErrorInvalid verification code format
image

Code for handle provider
image

Laravel view
image

Vue
image

image

IMG_2483