Laravel Socialite (Social Login) - Login with google, facebook and github

Поділитися
Вставка
  • Опубліковано 8 лис 2024

КОМЕНТАРІ • 142

  • @SagarKumar-dp2ek
    @SagarKumar-dp2ek 3 роки тому +1

    Except for facebook both GitHub and Gmail worked for me but I think the error is from my side. Thank you so much it is my first-time experience of the socialite in my 2 year of experience in laravel. Again thank you so much I'll share this tutorial with my colleagues as well. Really appreciateted. Channel also subscribed and video is already liked :) Stay blessed

    • @codeforyou
      @codeforyou  3 роки тому +3

      In one word, you are really awesome 😎

  • @nielblanca1843
    @nielblanca1843 3 роки тому +4

    Thank you so much for making this tutorial, Makes me easy to understand than reading Documentation in laravel 8.x

  • @mahinchowdhury3995
    @mahinchowdhury3995 2 роки тому

    From one bangali to another, great job. Two thumbs up.

  • @giuliovinci242
    @giuliovinci242 2 роки тому +1

    Awesome... but you should have separated client side from server side... I'm confused because I only need server side (I have log in with google button on my mobile app already)

  • @Pramodsharma-uz8ix
    @Pramodsharma-uz8ix 2 роки тому

    I m not getting Facebook avatar, but rest are working fine. Thanks Man !

  • @yusaazmi
    @yusaazmi 3 роки тому +1

    Thankyou so much my man, its very helpfull!!
    P.S. i do follow all of your tutorials from the begining but i found error in my redirect. Then i put stateless() in method handleGoogleCallback and it works!

    • @codeforyou
      @codeforyou  3 роки тому

      Glad to hear 🤗
      Please be my side.

    • @mastertech894
      @mastertech894 3 роки тому

      How ..plz will you explain

  • @РавшанДавлатов-ц7г

    Super video, thank you👍👍👍

  • @renan_s3_2.0
    @renan_s3_2.0 4 місяці тому

    Muito obrigado, ajudou de mais!!!

  • @mohamed77599
    @mohamed77599 2 роки тому

    thanks the best toutrial

  • @marlonlima3370
    @marlonlima3370 3 роки тому

    Very Usefull, i have tried with breeze already installed, some few changes, but work perfect

  • @letscooktogether5472
    @letscooktogether5472 3 роки тому +3

    on thumbnail its Laravel 8 and you are using Laravel 6 docs

  • @ReGHeo
    @ReGHeo 3 роки тому +1

    idk if its the video's fault on missing some detail(or maybe i missed it), or if it is the Laravel on 8.x sudden updates
    I had encountered errors along the way and needed to add to make it function
    add on Logincontroller:
    use App\Models\User;
    (if your getting User not detected)
    use Socialite;

    use Auth; (if Auth is not detected)

    • @mehdimasmar6361
      @mehdimasmar6361 3 роки тому +1

      in auth this is the right path for it : Illuminate\Support\Facades\Auth;

  • @amindouale829
    @amindouale829 3 роки тому

    tnx such well done. but for my PHP migrate show error .how can I fix that

  • @xp0nat
    @xp0nat Рік тому

    hi, no matter what i do, i get the error Laravel\Socialite\Two\InvalidStateException, what do you think is the problem?

  • @rubelmahamud3648
    @rubelmahamud3648 Рік тому

    Thanks a lot.

  • @muhammadhabil2837
    @muhammadhabil2837 3 роки тому +1

    thank you for the tutorial, it's really help me. but my facebook login is not working, I think the problem is in facebook developer page, and I saw your video that your Valid OAuth Redirect URIs is error too. How can your facebook login runs smoothly? please help me

    • @kunalrajput4539
      @kunalrajput4539 3 роки тому +1

      did you figure it out , i'm having same issue with facebook on localhost

    • @victor_lawal
      @victor_lawal 3 роки тому +2

      localhost/...
      just make sure you are using https for facebook

  • @programmer7449
    @programmer7449 2 роки тому

    Background music thoda low rakho biradar

  • @projectnetwork8454
    @projectnetwork8454 2 роки тому

    very think you sir

  • @rafablum
    @rafablum 3 роки тому +1

    how do you zoom the screen?

    • @NairiAreg
      @NairiAreg 3 роки тому

      CTRL+"scroll" or CTRL+"+" and CTRL+"-"

  • @user-gj3rw4fc5f
    @user-gj3rw4fc5f 3 роки тому +1

    error 'Laravel \ Socialite \ Two \ InvalidStateException' on the line "$ user = Socialite :: driver ('google') -> user ();"
    any solution?

    • @user-gj3rw4fc5f
      @user-gj3rw4fc5f 3 роки тому

      Solucion: $user = Socialite::driver('facebook')->stateless()->user();

    • @user-gj3rw4fc5f
      @user-gj3rw4fc5f 3 роки тому

      nowadays in github json the name comes as nickname, so put $ user-> name = $ data-> nickname; to register a github user

    • @augustomoradiaz
      @augustomoradiaz Рік тому

      Worked for me thanks

    • @codeforyou
      @codeforyou  Рік тому

      You are welcome 🤗

  • @ngochoavo3075
    @ngochoavo3075 2 роки тому +2

    when i run php artisan migrate:fresh , i have a error like this: SQLSTATE[HY000] [2002] Connection refused (SQL: SHOW FULL TABLES WHERE table_type = 'BASE TABLE'),
    how i can fix , can you help me, i changed databasename in .env file everything oke but it cannot run :(((((

    • @codeforyou
      @codeforyou  2 роки тому

      Run php artisan cache:config

    • @ngochoavo3075
      @ngochoavo3075 2 роки тому

      @@codeforyou i have run it, but after i'have run php artisan migrate , it's not working @@

  • @tinesh9091
    @tinesh9091 4 роки тому +1

    Nice tutorial...How to do this with laravel passport and socialite?

    • @codeforyou
      @codeforyou  4 роки тому

      Here is another tutorial about laravel passport. Hopefully you will be helped :)
      ua-cam.com/video/SFVb-h3fkNo/v-deo.html
      Please subscribe channel to get latest tutorials.

  • @sayadkm
    @sayadkm 3 роки тому

    Class 'App\Http\Controllers\Auth\Socialite' not found
    I am getting this error when trying to login via google

  • @meetshrimankar2096
    @meetshrimankar2096 2 роки тому

    Thank you sooooooo much!!!!!

  • @iammuttaqi
    @iammuttaqi 2 роки тому

    Thank you very much

  • @giangtruong4571
    @giangtruong4571 2 роки тому

    thanks bro

  • @zannouabel2969
    @zannouabel2969 3 роки тому +1

    j'aimerais savoir comment je p
    eux tester cela avec Postman donc en utilisant des Api
    Merci pour un retour favorable

  • @ahmadalashi23
    @ahmadalashi23 3 роки тому

    Well done and good luck to you ❤😊

  • @TheSaifeddine1999
    @TheSaifeddine1999 3 роки тому

    FatalErrorException in Emitter.php line 49:
    Cannot use lexical variable $eventName as a parameter name
    ...????

  • @zafeerahmad4705
    @zafeerahmad4705 3 роки тому

    it is redirecting me after login not actually login neither it is saving user data in database without any error, please help me out here

  • @victor_lawal
    @victor_lawal 3 роки тому

    Thanks

  • @sergey_gabrielyan1001
    @sergey_gabrielyan1001 3 роки тому

    Facebook returns only user id, name and email, will not be possible to get also first_name and last_name separately?

    • @codeforyou
      @codeforyou  3 роки тому

      Please check Facebook APIs.

  • @AliAhmad-ee6mh
    @AliAhmad-ee6mh 3 роки тому +1

    how to resolve 404 | not found error .....please

  • @naimislamantor3781
    @naimislamantor3781 3 роки тому

    Great video buddy!!!

  • @Saboor-Hamedi
    @Saboor-Hamedi 3 роки тому

    login.facebook, Where does it come from on blade termplate

  • @noranmostafa1556
    @noranmostafa1556 2 роки тому

    thank you 😊

  • @sayadkm
    @sayadkm 3 роки тому

    Class 'App\Http\Controllers\Auth\User' not found

  • @nikza1936
    @nikza1936 2 роки тому

    Well done !

  • @nno443
    @nno443 3 роки тому

    Thank you pak

  • @ShakilAhmed-01
    @ShakilAhmed-01 2 роки тому

    can u please tell me why i get this kind of error?
    Not Found
    The requested URL was not found on this server.
    Apache/2.4.46 (Win64) OpenSSL/1.1.1g PHP/7.4.10 Server at localhost Port 80

    • @codeforyou
      @codeforyou  2 роки тому

      Please check the instructions carefully.

  • @AliHassan-pb9th
    @AliHassan-pb9th 3 роки тому

    Hi, i am using laravel 7 and i face this error " Missing required parameter: client_id " so please tell me the solution of this.
    Thanks

    • @bibhasash7371
      @bibhasash7371 2 роки тому

      Copy and paste the app id generated for api in developers console

  • @taniasiregar653
    @taniasiregar653 2 роки тому

    It works except fb login. Could you update tutorial?

    • @codeforyou
      @codeforyou  2 роки тому

      Please follow the instructions carefully.

  • @md.joynalalam551
    @md.joynalalam551 3 роки тому

    THANKS A LOT.

    • @codeforyou
      @codeforyou  3 роки тому

      You are welcome ☺️
      Follow me for upcoming tutorials.

  • @thaihai7636
    @thaihai7636 2 роки тому

    If I login to my google account locally, it's ok. But when running the main domain, it gives error 403 Forbidden
    You do not have permission to access this document.
    Can you help me?

  • @iomar3527
    @iomar3527 3 роки тому

    Thanks , whene try press on the new buttons i have error "Class 'App\Http\Controllers\Auth\Socialite' not found"
    C:\xampp\htdocs\projectBlog\app\Http\Controllers\Auth\LoginController.php:46
    line 46 : return Socialite::driver('google')->redirect();

    • @codeforyou
      @codeforyou  3 роки тому

      You didn't install Socialite package properly.
      Uninstall and install again according to my tutorial.
      Please subscribe channel to get latest tutorials.

    • @mianusman6403
      @mianusman6403 3 роки тому

      The redirect URI in the request, www.login.dev.me/googleres, does not match the ones authorized for the OAuth client. To update the authorized redirect URIs, visit: console.developers.google.com/apis/credentials/oauthclient/${your_client_id}?project=${your_project_number}
      i am facing error like this how can i handle it please help me

  • @Ramziddin_Rustamovv
    @Ramziddin_Rustamovv 2 роки тому

    hi , when i clicked button , all buttons redirect me google , facebook, and git hub account , but after i clicked register as Account name "" The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again."" like this error occur , help me please

    • @codeforyou
      @codeforyou  2 роки тому

      Please follow the instruction carefully.

  • @volkankaban
    @volkankaban 3 роки тому

    Are you able upload sources to Github?

    • @codeforyou
      @codeforyou  3 роки тому +1

      The link is on description.
      Anyway subscribe channel to get latest tutorials.

  • @honoremwiseneza2970
    @honoremwiseneza2970 3 роки тому

    hi my app is logging out directly could you guide me how I can manage this?

    • @codeforyou
      @codeforyou  3 роки тому

      Please check the instructions carefully.

  • @kamalgyanchandani4143
    @kamalgyanchandani4143 3 роки тому

    What is a difference in Login@index vs Login::class, 'index' in Laravel

    • @codeforyou
      @codeforyou  3 роки тому

      Can you please share codes?

    • @igorponso542
      @igorponso542 3 роки тому +1

      Hmm
      If I'm not wrong Login@index is the way to call a function from a controller on an older versions of Laravel.
      and Login::class, 'index' is the way to call the function directly from a controller;
      Controller_name::class, 'function_Name';
      On you case:
      Login::class, 'index'
      laravel.com/docs/8.x/routing#route-parameters

  • @isaacadyael3953
    @isaacadyael3953 3 роки тому +1

    I need help with this, "Error 400: invalid_request
    Missing required parameter: client_id" :'(

    • @codeforyou
      @codeforyou  3 роки тому +1

      Did you follow the instructions carefully?

    • @isaacadyael3953
      @isaacadyael3953 3 роки тому +1

      @@codeforyou yes, but I have these error :'c

    • @isaacadyael3953
      @isaacadyael3953 3 роки тому +1

      @@codeforyou What's the correct url for redirect?
      where is login/google/callback?

    • @GlebBikushev
      @GlebBikushev 3 роки тому +1

      the same, bro

    • @GlebBikushev
      @GlebBikushev 3 роки тому +1

      did you solve it ?

  • @mercyinislam4718
    @mercyinislam4718 3 роки тому

    Thank you

    • @codeforyou
      @codeforyou  3 роки тому

      You are welcome ☺️
      Please subscribe channel to get latest tutorials.

  • @REplayer001
    @REplayer001 3 роки тому

    I followed all instructions to the dot.
    I am getting error: Route [login.google] not defined., as well as login.facebook, login.github same.
    I also tried downloading ur github code and running that, still am getting the same error.
    maybe because im not using xamp or i didnt place it in htdoc
    EDIT:
    Nevermind
    It was because I needed to clear to do
    php artisan route:clear
    and
    php artisan optimize.

    • @divyeshrathva5370
      @divyeshrathva5370 3 роки тому

      bro your route is not defined.. maybe you have not given names to routes.

  • @nicodica
    @nicodica 3 роки тому

    Thank you!!!

    • @codeforyou
      @codeforyou  3 роки тому

      You are welcome. Did you subscribe to channel? Don't forget to get latest tutorials.

  • @bibhasash7371
    @bibhasash7371 2 роки тому

    im getting error on the redirect url how you use it with public

    • @codeforyou
      @codeforyou  2 роки тому

      Please follow the instructions carefully, hopefully you will get the solution.

    • @bibhasash7371
      @bibhasash7371 2 роки тому

      @@codeforyou got it you are using apache which means you pasted your laravel project inside htdocs thats why you are mentioning public but I'm using laravel development server thats it and btw thanks for the tutorial man

    • @codeforyou
      @codeforyou  2 роки тому

      I'm glad to hear, please stay with me by subscribing channel.

  • @salonimahajan48
    @salonimahajan48 3 роки тому

    I am getting this "User is not allowed to see the application.: The user is not allowed to see this application per the developer set configuration." in facebook login give some solution

    • @codeforyou
      @codeforyou  3 роки тому

      Please check the instructions carefully.

    • @salonimahajan48
      @salonimahajan48 3 роки тому

      @@codeforyou I dont't understand what does it mean .am I missing any conguration?

  • @nabildeveloper9193
    @nabildeveloper9193 3 роки тому

    reset link are not sent how do i solve this error
    it shows->
    Swift_TransportException
    Cannot send message without a sender address

  • @saimoralam5647
    @saimoralam5647 3 роки тому

    Avatar doesn't show and doesn't save in database i don't know what's the problem.

    • @codeforyou
      @codeforyou  3 роки тому

      Please check the instructions carefully.
      Anyway subscribe channel to get latest tutorials 👍

    • @saimoralam5647
      @saimoralam5647 3 роки тому

      @@codeforyou i checked but didn't get any solution

    • @saimoralam5647
      @saimoralam5647 3 роки тому

      thx a lot problem solved

    • @codeforyou
      @codeforyou  3 роки тому

      Very great job 👍

  • @nguyenvanhoa6227
    @nguyenvanhoa6227 3 роки тому

    my problem Laravel\Socialite\Two\InvalidStateException.. help me!:((

  • @mohammedelatbany5950
    @mohammedelatbany5950 3 роки тому

    thank u sir but i have this problem
    GuzzleHttp\Exception\RequestException
    cURL error 60: SSL certificate problem: unable to get local issuer certificate (see curl.haxx.se/libcurl/c/libcurl-errors.html) for www.googleapis.com/oauth2/v4/token

  • @samim.4949
    @samim.4949 3 роки тому

    ...

  • @faizulla5838
    @faizulla5838 3 роки тому

    cool stuff thanks of course !!! But I got a headache from this fucking music.

  • @rociogiannaccini1842
    @rociogiannaccini1842 3 роки тому

    Hi! Please can u help me with this error, "not found the required url was not found in this server", I follow your steps I only change de name of the app.. like this "localhost/tadi/public/login/google/callback

    • @codeforyou
      @codeforyou  3 роки тому +1

      Maybe you missed something. Please try one more time.

  • @jcat2144
    @jcat2144 3 роки тому

    Hi, this is amazing. Do there exist any method to logout from FACEBOOK

    • @codeforyou
      @codeforyou  3 роки тому

      Thanks for your interest 👍.
      I will check and let you know 😊
      By the way please subscribe channel to get latest tutorials.

  • @anumaamir3441
    @anumaamir3441 2 роки тому

    Insecure Login Blocked
    You can't get an access token or log in to this app from an insecure page. Try re-loading the page as
    when i try to login with facebook i am getting this error need help?

  • @muhammadhamid7241
    @muhammadhamid7241 2 роки тому

    Thankyou very much