Facebook Login Button In React

Поділитися
Вставка
  • Опубліковано 20 жов 2024
  • In this video we will create a Facebook login button in React to get the users name, email and picture. We will then add it to the component state and render the data. This is an introductory based tutorial.
    Code: Github Gist
    gist.github.co...
    React Facebook Login Repo:
    github.com/kep...
    Sponsor:
    Anthrodesk - anthrodesk.com
    💖 Become a Patron: Show support & get perks!
    / traversymedia
    Website & Udemy Courses
    www.traversymed...
    Follow Traversy Media:
    / traversymedia
    / traversymedia
    / traversymedia
  • Наука та технологія

КОМЕНТАРІ • 154

  • @TraversyMedia
    @TraversyMedia  6 років тому +23

    When you create an app it is in "development mode" by default but you should be able to access it if you registered it as the user that you are using it with. This is normal behavior which I forgot to mention. When you are ready for it to be used by others, go to your Facebook dev dashboard->Status and Review and you can put it into production.

    • @sairamg685
      @sairamg685 6 років тому

      yes if we have production domain URL we can make status to production. Thank you, Brad.

    • @mohammadakbar32
      @mohammadakbar32 6 років тому

      Traversy Media thanks Brad❤

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

      I really love Brad and his inspiring codes and tutorials. He has always save me in debuging my code. Thank you and you will continue to be a living legend.

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

      Brad, in a mobile device works the same ? thanks you !

  • @TraversyMedia
    @TraversyMedia  6 років тому +63

    Now that my personal life has cleared up a bit, I am working on some long form content for UA-cam. Some full projects and series, some new stuff (languages, etc). I will be uploading smaller tutorials like this as well in the meantime.

    • @VictorRay
      @VictorRay 6 років тому

      How are you now bro?

    • @akashakya
      @akashakya 6 років тому

      good to hear that sir! we wish all good things and positivity for your life and family. keep producing great content!

    • @Tigap
      @Tigap 6 років тому +1

      Traversy Media please I want you to advice me on this problem am having. Am 25years of age, am in college now 100 level, in Nigeria. And what am studying is not compatible with web developing. I have learnt HTML, CSS and JavaScript before I was admitted to college. So am thinking of dropping out to continue learning what I am passionate about. Because I thinking am wasting my time in college. Please I need your advice.

    • @emmanuel4699
      @emmanuel4699 6 років тому +1

      @Keypounch I'm Nigerian too, and I understand what it's like to feel the fear of dropping out. Trust me you won't be making a bad decision by dropping out and chasing your dreams or goals as a software dev or web developer. There's a lot of material online both free and paid that can contribute greatly to your growth as a software dev, as long as you're willing to put in the maximum work. If you've watched a lot of Brad's personal videos, you can tell that he is also self-taught, so it's not impossible at all. I dropped out to chase my goals as a software dev, and it is the absolute best decision I've ever made in my life. If I ever made a good decision, dropping out of uni to chase my goals as a software dev would be it.

    • @steviegibson13
      @steviegibson13 6 років тому

      Thanks Emmanuel, ... hey man.

  • @DanielK48
    @DanielK48 6 років тому +33

    That moment when you are taking React class in the university and you have a project to make which requires authentication and Brad uploads a video for that! THANK YOU BRAD!!!!

  • @ElHawary
    @ElHawary 4 роки тому +2

    Almost 2 years later and this is still! the best refrence for me. Thank you Brad.

  • @DoggeXL
    @DoggeXL 6 років тому +1

    Brad i'm 13 and just started learning react like a week ago and now this video pops up.. Thank you so much and great tutorial!

  • @kennan10101
    @kennan10101 6 років тому

    Thank you! I've looked through five or six tutorials for user auth on a MERN app and this is the only truly beginner-friendly tutorial I have found that allows easy implementation into an already-built app. You're a life saver!

  • @steveymcneckbeard
    @steveymcneckbeard 6 років тому

    Brad, you are by far one of the best, if not the best Web Dev channels on UA-cam!

  • @samay10120
    @samay10120 6 років тому

    Thanks Brad,
    You changed alot in my life. It's been six months since I enrolled in your full-stack web development course in udemy. Now I can say I am a real developer. Thanks Brad and God bless you

  • @ronak4489
    @ronak4489 6 років тому +2

    You got a Sponsor! Very Happy for you Brad

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

    Again, the way you explain things imposes respect and admiration. Thank you!

  • @ashutoshnayak609
    @ashutoshnayak609 6 років тому +1

    Brad , we know about that you recently shifted to a new home (by the way congratulations for the new house) and I have experienced how stressful these things feel. Apart from that I hope you are alright with your personal life and are in good health. Thanks for everything you do .I am now a Web developer only because of you. Hope you are doing good and best wishes for the upcoming videos

  • @MrBadcompany00
    @MrBadcompany00 6 років тому +1

    I dreamt of meeting you live in person, the greatest teacher of all time, god bless you and your family

  • @VeeWebCode
    @VeeWebCode 6 років тому +18

    Brad sir, your tutorials are very helpful for us. Can you make a video on how to build a portfolio website from scratch...?

    • @ludwig4
      @ludwig4 6 років тому

      Yeah Brad please do a web developer Portfolio tutorial...

  • @XilumX1
    @XilumX1 6 років тому

    It's almost scary. But everytime I need to find something for college you make a video for it! Thank you! :)

  • @AbysmalPig
    @AbysmalPig 6 років тому +1

    Hey, I’ve been programming for about 4 months now but I constantly have a struggle with alcoholism. This isn’t related to this video specifically but I’d really appreciate a pep talk or some tips on how to turn my life around. Traversey, you got me into this & I really appreciate you. Thanks.

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

    Thanks for this lecture. please i will like to have an hint on how to redirect to another page once the user is authenticated.

  • @hardikmodi8234
    @hardikmodi8234 6 років тому

    It come as savier for me. I am working on project and find it really difficult to implement Facebook login. Thank you sir for your great efforts.

  • @INKWEON7269
    @INKWEON7269 6 років тому +9

    thanks~ I have a question. How to create Login Out Code~? ^^

  • @danielsimionescu298
    @danielsimionescu298 6 років тому

    It's good to see that it's not that complicated... thanks 😅

  • @nasaruddin36
    @nasaruddin36 6 років тому

    Dear sir . Your tutorial are very easy to understand . Please make a tutorial on regular expression .

  • @darwin9111
    @darwin9111 5 років тому

    This was exactly what I needed! Thank you so much Brad!

  • @CorporalPoon
    @CorporalPoon 6 років тому +4

    Hey brad, can you make a course / series on starting a web dev business?

  • @reeceobligacion5648
    @reeceobligacion5648 6 років тому

    Hey Brad, a helpful tip when using react with VS code. If you switch the language mode from 'Javascript' to 'Javascript React' you'll be able to use emmet within your react files.
    Btw, love your videos!

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

    Thank you !! every detail you give is so helpful. Thumbs up and subscribed :D

  • @robertrowe9468
    @robertrowe9468 6 років тому

    Love the content you are putting up thank you!! I am brand new to wanting to learn coding and I have sublime and Visual studio code, my question would be which one would the best to get a grasp on coding strictly beginning

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

    Thanks Brad, it's a great video. Do I need do anything on the backend api endpoint for facebook login once I used this react component? I did see some facebook login api endpoint development using passport, so I'm very confused what's the relationship between this login button and backend passport things.

  • @samlawless4447
    @samlawless4447 6 років тому

    Hey Brad, thanks for this and all your work. Do you have any tutorials on single page applications without any frameworks involved - (Just HTML, CSS and Vanilla JS?) I did find a couple on youtube but I don't find the content as informative and understandable as yours.

  • @elmzlan
    @elmzlan 6 років тому +2

    hi brad this is a great video as usual , i believe this should also be included in the MERN course on Udemy. this is a good example for multiple auth strategies using passport instead of just one strategy which is jwt.

  • @GameMasters825
    @GameMasters825 6 років тому

    Travis how do you know all this things? You learn by videos books? Official documentation of each language? Could you tell a little please?

  • @mohammadakbar32
    @mohammadakbar32 6 років тому +4

    thanks Brad! God bless you!

  • @kamalhm-dev
    @kamalhm-dev 6 років тому

    which one do you use more, react or vue?

  • @nitrotech9701
    @nitrotech9701 6 років тому

    The tutorials is awesome. Thank you.

  • @saadzafar4336
    @saadzafar4336 6 років тому

    Great Video Brad. Your tutorials are really helpful, I have learned a lot from you.
    I am facing some problem and I could really use your help. My final year university project is near and I haven't decided what to build yet. The frameworks I am good at are Angular, React, Vue and Node.js. Can you please suggest what projects I can build with these frameworks as a final year project?
    Thanks 😊

    • @deriegle
      @deriegle 6 років тому

      You shouldn't need to use all of them. You should pick Node.js & a front end framework that you're either good at that would make it easier or one that you'd like to learn more, then go for it. You can complete any web app project with any of those technologies, it just may be more efficient or easier using different frameworks over others. Do you have any type of project you'd like to build? I would try finding something that you're interested in. For example: make an easy to use pizza ordering app (that doesn't actually order), but let's you put toppings etc on it or some other type of web app.

    • @saadzafar4336
      @saadzafar4336 6 років тому

      Thank you Devin Riegle. Your response has been really helpful. I really liked this idea of putting toppings on the pizza. Any other idea you might have? I just want to have multiple ideas to decide which one I should go for.

  • @AbhishekKumar-mq1tt
    @AbhishekKumar-mq1tt 6 років тому

    Thank u for this awesome video. I am waiting for your new series

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

    Is it best practice to use the react-facebook-login library or passport-facebook library when dealing with Facebook authentication in MERN

  • @SuperGari2
    @SuperGari2 6 років тому

    awesome tutorial.... i am wondering if fb login is similar to google login?

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

    i know this is an old video. fantastic video. my pop up window goes directly into logging into my page but with yours, it ask you if you want to 'continue as brad' how can i implement this?

  • @ZeeshanTamboli
    @ZeeshanTamboli 6 років тому

    Thanks Brad! Would love it if you could do a crash course on Parse Server.

  • @flo_cycling
    @flo_cycling 6 років тому

    Thanks Brad! Great video.

  • @fearless-112
    @fearless-112 6 років тому +1

    Thank you Brad, can you do a tutorial on messenger API?

  • @bruff19
    @bruff19 6 років тому

    This is what im working on currently for my job, only I have to make it work with a rails api endpoint.

  • @adebiyial
    @adebiyial 5 років тому

    I guess this is a form of OpenID with Facebook. Since it deals with Authentication, we can take the fields we want from FB and map them to the fields required in ours, then sort of call our Create Account endpoint. Is this the flow for all those Continue With Google websites?

  • @SandeepKumar-tc1fm
    @SandeepKumar-tc1fm 5 років тому

    very very thanks .....nice tutorial ...it helps me a lot.

  • @pikachu5223
    @pikachu5223 6 років тому +8

    React from scratch in udemy please! 😎😊

  • @shahid2k7
    @shahid2k7 6 років тому

    Hi Brad,
    Great tutorial !!! Would u please create a tutorial on Facebook account kit as well.

  • @Maverick_prbt
    @Maverick_prbt 6 років тому

    Thanks for the guide Brad !
    Can you pls do a video/series on "Flutter" ?

  • @Vinc3n7
    @Vinc3n7 6 років тому

    Love it! Thanks Brad.

  • @ayoubasri7987
    @ayoubasri7987 5 років тому +1

    Thanks Brad! have anyone found the tutorial wich he is talking about here 17:43 ? i can't have a clear image of what we could do with these profil data from the Client side if we want to register or log in. thanks

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

    So Does This Mean Evey Department Will Have It's Own Dedicated iT Team Or Let me Guess The Frontline IT Team Is Just Dumping And Replicating It's Techniques ?

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

    thank you Traversy !!
    Do you know how to decode the token that Facebook responds to you?

  • @igbinewekaeghosa7813
    @igbinewekaeghosa7813 6 років тому

    Brad God bless you for your selfless work...i just got your course on materialize css on udemy, wonderful course...Please can you do a navigation bar with a brand logo of different dimensions e.g 159*50, 376*128

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

    Great video like always!

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

    thanks for this video, it really works for me but how to customize that Facebook Button?

  • @deepaks.m.6709
    @deepaks.m.6709 6 років тому

    Hurray! New Video :D

  • @abdulrahimbangura448
    @abdulrahimbangura448 6 років тому

    Nice tutorial as always and thank you so much for your great kindness.Boss Brad Can you make a video on how to build a portfolio website from scratch...?

  • @rakesh.rankawat
    @rakesh.rankawat 4 роки тому

    Like always, you are the best ♥️

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

    i dont have to use like passport-facebook-token or something like that ? is this just enough ?

  • @roshithradhakrishnan2931
    @roshithradhakrishnan2931 6 років тому

    Please upload more react stuffs Brad.. Tnks a lot

  • @alioune3790
    @alioune3790 6 років тому

    Hello Brad. In minute 17:50 you are talking about your course Express MongoDB Dev to Deployment, where you store the id in mongodb. I can't find that video on your channel. Do you or someone else have the link of that video? I need an example where the id is store in a database. Thank you

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

      Hello sir, i also looking for this video mentioned above . It would be very helpful if you could share that link here...

  • @raitasorin
    @raitasorin 6 років тому

    How you can create those icons on the left hand side of Studio Code?

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

    Would it work if I import it in another .js file, like a login page for example? help

  • @threecodes-ego
    @threecodes-ego 6 років тому

    Dear my favorite UA-camr, please make a tutorial about login with Google in CodeIgniter. Greeting from Indonesia!

  • @MrRicharddaniel
    @MrRicharddaniel 6 років тому

    Hi Whats the name of the video with facebook login in vanilla javascript ??

  • @storyden5
    @storyden5 6 років тому

    You Motivate me A lot

  • @riis08
    @riis08 6 років тому

    Brad, looking for a series on Tensorflow..

  • @joanteran1297
    @joanteran1297 5 років тому

    Perfect Tutorial! thanks u very much!!

  • @AnkitKumar-cu9ic
    @AnkitKumar-cu9ic 2 роки тому

    I am not able to do this...I have follow exact code but its not work for me..pls help me..im stuck here.

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

    Will this work on Next.Js app as well?

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

    When we go to basic settings to set the App domains, we have to now set a User data deletion field and Privacy Policy URL as well which are mandatory. I'm not able to save changes without filling these. What should I do?
    I know this video was posted 3 years ago but it would be very helpful if someone could guide me

  • @ananthukrishnans9200
    @ananthukrishnans9200 5 років тому

    For me the confirmation page is not coming , if i am already logged in then it redirects to the same page , but i am getting the datas in console. If I am not logged in , it will show log in page of fb, after entering it will comeback to the same page.

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

    Why Does it Expire within a Time Frame?

  • @abdulmajeed-nf3qy
    @abdulmajeed-nf3qy 6 років тому

    Very nice tutorial... please create video pwa web site tutorials... thank you

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

    Thanks Brad!

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

    They show an error in privacy policy url, user data url and terms and service url. So I am unable to save it . please help me

  • @zackmartin9779
    @zackmartin9779 5 років тому

    Can this be done in Expo?

  • @CutsMetaphor
    @CutsMetaphor 6 років тому

    Hey Brad, could you do a tutorial on a real login and sign up page?

  • @yurifarias5305
    @yurifarias5305 6 років тому

    Can you make a similar tutorial, but using a typescript codebase (tsx) instead of js?
    Anyway, i'm new on react and this helped me a lot, thanks

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

    its amazing ! thank you very much

  • @daviidon
    @daviidon 6 років тому

    Can you cover Google AMP?

  • @رسطمالسيستانيالإرهابيلقلوقبنيص

    thanks a lot of :) ...can you pls lern us how to put picture on the footer using css? many thanks....

  • @deepaks.m.6709
    @deepaks.m.6709 6 років тому

    Brad, Starting your course (MERN stack web dev. in Udacity) with the knowledge of HTML, CSS, JS, React (Beginner), Node.JS (Just finished your crash course), Express.JS (Just finished your crash course) is enough?

  • @sillyrabbi
    @sillyrabbi 5 років тому

    Are you able to let users logout without issues? Every time I try calling FB.logout() I get an error, and no one seems to know how to fix it :(

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

    How we can sign out ?

  • @husainahmmed9025
    @husainahmmed9025 6 років тому

    How to solve this issue "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 " ? I am using Windows 10

  • @martynawojcik5348
    @martynawojcik5348 5 років тому

    that was really helpful :) thx

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

    how can i style that facebook button?

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

    Thanks, A Ton! You da best :)

  • @happysloth91
    @happysloth91 6 років тому

    Thank you so much, it's very cool and clear

  • @jgraves4532
    @jgraves4532 6 років тому

    this has been on my list to understand for a very long time, thank you for making that so easy.

  • @nidavelliir
    @nidavelliir 6 років тому

    When I click the login button I get the following error: App Not Setup: This app is still in development mode, and you don't have access to it. Switch to a registered test user or ask an app admin for permissions. Does anyone know how to fix it?

  • @SolidousMdz
    @SolidousMdz 6 років тому

    GJ as always.

  • @skillfulactor09
    @skillfulactor09 6 років тому

    can you do some more tutorials on vue.js please thanks

  • @ahmadreza532
    @ahmadreza532 6 років тому

    hi brad ... plz do AmCharts crash course

  • @grunf5604
    @grunf5604 6 років тому

    Woohoo long live our Brad :)

  • @reactdeveloper9610
    @reactdeveloper9610 5 років тому

    Thanks so much sir

  • @IsfhanAhmed
    @IsfhanAhmed 6 років тому

    thanks for these

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

    Can someone please tell me how to use the "developers.facebook/apps" in 2021? The whole developers.facebook site has changed and i don't know how to follow through with this tutorial. Someone should please help me.

  • @learncode2666
    @learncode2666 6 років тому

    Futur tutorial with php for facebook connect please, great tutorial

  • @muahmmadusman8913
    @muahmmadusman8913 6 років тому

    Allah pak San no kush rakhi ameen

  • @eric7758
    @eric7758 6 років тому +5

    Ug alert!!!! Please dont skip any advert on Brad's videos