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

  Рет қаралды 54,807

Code For You

Code For You

Күн бұрын

Пікірлер: 142
@SagarKumar-dp2ek
@SagarKumar-dp2ek 3 жыл бұрын
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 жыл бұрын
In one word, you are really awesome 😎
@nielblanca1843
@nielblanca1843 3 жыл бұрын
Thank you so much for making this tutorial, Makes me easy to understand than reading Documentation in laravel 8.x
@codeforyou
@codeforyou 3 жыл бұрын
You are welcome 🙂
@mahinchowdhury3995
@mahinchowdhury3995 3 жыл бұрын
From one bangali to another, great job. Two thumbs up.
@codeforyou
@codeforyou 3 жыл бұрын
It's my pleasure ☺️
@РавшанДавлатов-ц7г
@РавшанДавлатов-ц7г Жыл бұрын
Super video, thank you👍👍👍
@Pramodsharma-uz8ix
@Pramodsharma-uz8ix 2 жыл бұрын
I m not getting Facebook avatar, but rest are working fine. Thanks Man !
@giuliovinci242
@giuliovinci242 2 жыл бұрын
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)
@marlonlima3370
@marlonlima3370 3 жыл бұрын
Very Usefull, i have tried with breeze already installed, some few changes, but work perfect
@codeforyou
@codeforyou 3 жыл бұрын
Glad to hear 🤗
@xp0nat
@xp0nat Жыл бұрын
hi, no matter what i do, i get the error Laravel\Socialite\Two\InvalidStateException, what do you think is the problem?
@user-gj3rw4fc5f
@user-gj3rw4fc5f 3 жыл бұрын
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 2 жыл бұрын
Worked for me thanks
@codeforyou
@codeforyou 2 жыл бұрын
You are welcome 🤗
@amindouale829
@amindouale829 3 жыл бұрын
tnx such well done. but for my PHP migrate show error .how can I fix that
@yusaazmi
@yusaazmi 3 жыл бұрын
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
@renan_s3_2.0
@renan_s3_2.0 6 ай бұрын
Muito obrigado, ajudou de mais!!!
@codeforyou
@codeforyou 6 ай бұрын
You are welcome 🤗
@mohamed77599
@mohamed77599 3 жыл бұрын
thanks the best toutrial
@codeforyou
@codeforyou 3 жыл бұрын
You are welcome ☺️
@ReGHeo
@ReGHeo 3 жыл бұрын
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 жыл бұрын
in auth this is the right path for it : Illuminate\Support\Facades\Auth;
@ngochoavo3075
@ngochoavo3075 3 жыл бұрын
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 3 жыл бұрын
Run php artisan cache:config
@ngochoavo3075
@ngochoavo3075 3 жыл бұрын
@@codeforyou i have run it, but after i'have run php artisan migrate , it's not working @@
@zannouabel2969
@zannouabel2969 3 жыл бұрын
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 ❤😊
@codeforyou
@codeforyou 3 жыл бұрын
Thanks ☺️
@rafablum
@rafablum 3 жыл бұрын
how do you zoom the screen?
@NairiAreg
@NairiAreg 3 жыл бұрын
CTRL+"scroll" or CTRL+"+" and CTRL+"-"
@TheSaifeddine1999
@TheSaifeddine1999 3 жыл бұрын
FatalErrorException in Emitter.php line 49: Cannot use lexical variable $eventName as a parameter name ...????
@sayadkm
@sayadkm 3 жыл бұрын
Class 'App\Http\Controllers\Auth\Socialite' not found I am getting this error when trying to login via google
@ShakilAhmed-01
@ShakilAhmed-01 3 жыл бұрын
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 3 жыл бұрын
Please check the instructions carefully.
@AliAhmad-ee6mh
@AliAhmad-ee6mh 3 жыл бұрын
how to resolve 404 | not found error .....please
@congdatt
@congdatt 3 жыл бұрын
Me too :(
@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
@Saboor-Hamedi
@Saboor-Hamedi 3 жыл бұрын
login.facebook, Where does it come from on blade termplate
@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.
@naimislamantor3781
@naimislamantor3781 3 жыл бұрын
Great video buddy!!!
@codeforyou
@codeforyou 3 жыл бұрын
Thanks 😊 Please subscribe channel to get latest tutorials.
@naimislamantor3781
@naimislamantor3781 3 жыл бұрын
Yes did it
@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.
@muhammadhabil2837
@muhammadhabil2837 3 жыл бұрын
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 жыл бұрын
did you figure it out , i'm having same issue with facebook on localhost
@victor_lawal
@victor_lawal 3 жыл бұрын
localhost/... just make sure you are using https for facebook
@letscooktogether5472
@letscooktogether5472 3 жыл бұрын
on thumbnail its Laravel 8 and you are using Laravel 6 docs
@tatianakruglaya6760
@tatianakruglaya6760 3 жыл бұрын
Many thanks. I learned and understood a lot of useful things from your videos.
@codeforyou
@codeforyou 3 жыл бұрын
That's my pleasure 😊 Please share videos more and more with your friends
@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?
@engineerwajidali3063
@engineerwajidali3063 2 жыл бұрын
16:39 select internal
@iomar3527
@iomar3527 4 жыл бұрын
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 4 жыл бұрын
You didn't install Socialite package properly. Uninstall and install again according to my tutorial. Please subscribe channel to get latest tutorials.
@mianusman6403
@mianusman6403 4 жыл бұрын
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
@tinesh9091
@tinesh9091 4 жыл бұрын
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 :) kzbin.info/www/bejne/iXe5k2CeaMuehNE Please subscribe channel to get latest tutorials.
@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 3 жыл бұрын
Copy and paste the app id generated for api in developers console
@sayadkm
@sayadkm 3 жыл бұрын
Class 'App\Http\Controllers\Auth\User' not found
@bibhasash7371
@bibhasash7371 3 жыл бұрын
im getting error on the redirect url how you use it with public
@codeforyou
@codeforyou 3 жыл бұрын
Please follow the instructions carefully, hopefully you will get the solution.
@bibhasash7371
@bibhasash7371 3 жыл бұрын
@@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 3 жыл бұрын
I'm glad to hear, please stay with me by subscribing channel.
@meetshrimankar2096
@meetshrimankar2096 2 жыл бұрын
Thank you sooooooo much!!!!!
@codeforyou
@codeforyou 2 жыл бұрын
You are welcome ☺️
@isaacadyael3953
@isaacadyael3953 3 жыл бұрын
I need help with this, "Error 400: invalid_request Missing required parameter: client_id" :'(
@codeforyou
@codeforyou 3 жыл бұрын
Did you follow the instructions carefully?
@isaacadyael3953
@isaacadyael3953 3 жыл бұрын
@@codeforyou yes, but I have these error :'c
@isaacadyael3953
@isaacadyael3953 3 жыл бұрын
@@codeforyou What's the correct url for redirect? where is login/google/callback?
@GlebBikushev
@GlebBikushev 3 жыл бұрын
the same, bro
@GlebBikushev
@GlebBikushev 3 жыл бұрын
did you solve it ?
@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
@codeforyou
@codeforyou 3 жыл бұрын
Did you follow the instructions carefully?
@nabildeveloper9193
@nabildeveloper9193 3 жыл бұрын
@@codeforyou yes
@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.
@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.
@taniasiregar653
@taniasiregar653 3 жыл бұрын
It works except fb login. Could you update tutorial?
@codeforyou
@codeforyou 3 жыл бұрын
Please follow the instructions carefully.
@iammuttaqi
@iammuttaqi 3 жыл бұрын
Thank you very much
@codeforyou
@codeforyou 3 жыл бұрын
You are welcome :)
@volkankaban
@volkankaban 3 жыл бұрын
Are you able upload sources to Github?
@codeforyou
@codeforyou 3 жыл бұрын
The link is on description. Anyway subscribe channel to get latest tutorials.
@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 жыл бұрын
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
@nikza1936
@nikza1936 3 жыл бұрын
Well done !
@codeforyou
@codeforyou 3 жыл бұрын
Thank you
@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 👍
@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?
@rubelmahamud3648
@rubelmahamud3648 2 жыл бұрын
Thanks a lot.
@codeforyou
@codeforyou 2 жыл бұрын
You are welcome ☺️
@programmer7449
@programmer7449 2 жыл бұрын
Background music thoda low rakho biradar
@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
@nguyenvanhoa6227
@nguyenvanhoa6227 3 жыл бұрын
my problem Laravel\Socialite\Two\InvalidStateException.. help me!:((
@honoremwiseneza2067
@honoremwiseneza2067 3 жыл бұрын
me too
@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 жыл бұрын
Maybe you missed something. Please try one more time.
@noranmostafa1556
@noranmostafa1556 2 жыл бұрын
thank you 😊
@codeforyou
@codeforyou 2 жыл бұрын
You are welcome ☺️
@giangtruong4571
@giangtruong4571 3 жыл бұрын
thanks bro
@codeforyou
@codeforyou 3 жыл бұрын
You are welcome ☺️
@projectnetwork8454
@projectnetwork8454 2 жыл бұрын
very think you sir
@codeforyou
@codeforyou 2 жыл бұрын
You are welcome ☺️
@nicodica
@nicodica 3 жыл бұрын
Thank you!!!
@codeforyou
@codeforyou 3 жыл бұрын
You are welcome. Did you subscribe to channel? Don't forget to get latest tutorials.
@md.joynalalam551
@md.joynalalam551 3 жыл бұрын
THANKS A LOT.
@codeforyou
@codeforyou 3 жыл бұрын
You are welcome ☺️ Follow me for upcoming tutorials.
@nno443
@nno443 3 жыл бұрын
Thank you pak
@codeforyou
@codeforyou 3 жыл бұрын
You are welcome 🙂
@mercyinislam4718
@mercyinislam4718 3 жыл бұрын
Thank you
@codeforyou
@codeforyou 3 жыл бұрын
You are welcome ☺️ Please subscribe channel to get latest tutorials.
@ckewe2144
@ckewe2144 4 жыл бұрын
Hi, this is amazing. Do there exist any method to logout from FACEBOOK
@codeforyou
@codeforyou 4 жыл бұрын
Thanks for your interest 👍. I will check and let you know 😊 By the way please subscribe channel to get latest tutorials.
@victor_lawal
@victor_lawal 3 жыл бұрын
Thanks
@codeforyou
@codeforyou 3 жыл бұрын
You are welcome ☺️
@faizulla5838
@faizulla5838 3 жыл бұрын
cool stuff thanks of course !!! But I got a headache from this fucking music.
@samim.4949
@samim.4949 3 жыл бұрын
...
@muhammadhamid7241
@muhammadhamid7241 2 жыл бұрын
Thankyou very much
@codeforyou
@codeforyou 2 жыл бұрын
You are welcome ☺️
LARAVEL SOCIALITE - LOGIN WITH SOCIAL ACCOUNT - GOOGLE SOCIAL LOGIN
22:52
From Zero to "Log In With GitHub" in Minutes, using Laravel
11:47
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Adding Social Logins with Laravel Socialite
10:24
Andrew Schmelyun
Рет қаралды 56 М.
How to Make login/sign in with Facebook account in Laravel Tutorial
23:03
Web Tech Knowledge
Рет қаралды 14 М.
Netflix Removed React?
20:36
Theo - t3․gg
Рет қаралды 39 М.
Laravel Eloquent: Deeper Relationships with One Query
10:37
Laravel Daily
Рет қаралды 145 М.
From Blank to Blog With Laravel in 10 Minutes
12:21
Laracasts
Рет қаралды 14 М.
SOLID Principles in Laravel: 5 Examples (+ New Course!)
21:07
Laravel Daily
Рет қаралды 75 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН