Facebook Login Swift - Firebase Authentication

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.พ. 2018
  • Facebook Login Swift - Firebase Authentication
    Escape Tutorial Hell 👉 rebeloper.com/mentoring
    Want to learn facebook login in swift? Are you trying to learn sign up with facebook or firebase social login? Are you looking for a good Firebase Authentication or facebook login ios swift tutorial? Then you are in the right place because this firebase facebook login swift video is perfect for you!
    In this signin with facebook episode I’ll guide you through facebook integration in swift, swift facebook sdk, social login, facebook login button and facebook auth. This is a step by step tutorial on facebook for developers and firebase. We will create a custom button for facebook login, Fbsdkloginbutton, facebook sdk github or facebook github, install facebook sdk and use facebook accesstoken. You need to learn facebook integration! In this facebook login tutorial you will find firebase facebook swift example code that you can use to Sign In with Facebook and Firebase. Firebase Authentication in Swift 5 at it’s best! So if you’re looking for a facebook login swift code snippet, facebook sdk for ios and video tutorial on how to use it than keep on watching!
    Let's dive into this firebase episode by Rebeloper!
    Let’s get to work!
    Don’t forget to download the resources:
    → store.rebeloper.com/youtube-c...
    RESOURCES & LINKS MENTIONED IN THIS VIDEO:
    developer.apple.com/xcode/swi...
    developer.apple.com/tutorials...
    **VIDEOS I RECOMMEND**
    CLOUD FIRESTORE FOR IOS IN SWIFT 5 MASTER COURSE
    → • Cloud Firestore - Gett...
    MVVM EXPLAINED
    → • MVVM in Swift - (Model...
    ANONYMOUS SIGN IN WITH FIREBASE IN SWIFT 5
    → • Firebase Authenticatio...
    MASTER AUTO LAYOUT WITH TINY CONSTRAINTS IN SWIFT 5
    → • Master TinyConstraints...
    FIREBASE PASSWORDLESS SIGN IN
    → • Passwordless Authentic...
    DO YOU WANT TO BE MY APPRENTICE?
    HIRE ME → rebeloper.com/hire-us/
    __________
    Say hi on social:
    Get in touch:
    → support@rebeloper.com
    SUBSCRIBE to weekly tips & tutorials for building iOS apps!
    → th-cam.com/users/rebeloper?su...
    Github: github.com/rebeloper/
    Hire me: rebeloper.com/hire-us/
    LinkedIn: / rebeloper
    My Blog: rebeloper.com/blog
    Follow me on Instagram: / rebeloper
    _____
    • Facebook Login Swift -...
    #Firebase #iOSDevelopment #rebeloper

ความคิดเห็น • 44

  • @rebeloper
    @rebeloper  6 ปีที่แล้ว +1

    Are you too waiting the new SDKs from Facebook to take over completely from the old ones?

    • @JustAlexV
      @JustAlexV 4 ปีที่แล้ว

      I'm receiving this error and can't sign in:
      nw_read_request_report [C3] Receive failed with error "Software caused connection abort"

  • @danorsulak5917
    @danorsulak5917 6 ปีที่แล้ว +2

    Awesome video series, I would be lost without them! The views will come, keep up the good work brother

    • @rebeloper
      @rebeloper  6 ปีที่แล้ว +1

      Thanks a lot! I’m looking for new tutorial topics. What are you interested in?

    • @danorsulak5917
      @danorsulak5917 6 ปีที่แล้ว +1

      Thanks for asking! Big picture I just started creating my first app! While its core competency will not be social media, it will need to have common sm features like "follow", "like", and "time line" on the front end. Then on the back end and I will need to learn quite a bit about how to best organize firebase tables and to store large amounts of data. So anything in those fields interest me.
      And when I get tired of doing the practical things for my app, I spice it up by learning more fun aspects. Currently "shopping" github for cool animations and features I can put into my app to make it stand out. Theres a lot of cool animations on there but they are hard to find. Specifically I am currently looking into adding a side panel like WDViewController or InteractiveSideMenu and how to integrate it with my UITabBar, adding a navigation page with a feature like Persei, and also considering how difficult it would be to take loginCritter, which I love ,and customizing it with a different animation and in a less prominent location. So in other words, kind of all over the map at the moment!

  • @swiftgames5382
    @swiftgames5382 6 ปีที่แล้ว

    Very well explained and handy tutorial. Thank you

    • @rebeloper
      @rebeloper  6 ปีที่แล้ว +1

      jon kelson you’re welcome. Keep an eye on the next ones as we dive even deeper into the Firebase Hole :)

  • @aniltodkar6199
    @aniltodkar6199 5 ปีที่แล้ว

    Sir, Thank You for your good explanation.

    • @rebeloper
      @rebeloper  5 ปีที่แล้ว

      You are welcome :) Subscribe for more and take a look at my newest playlist about SwiftUI in UIKit: th-cam.com/video/DjITHGUbRSw/w-d-xo.html

  • @Raj-sk3vc
    @Raj-sk3vc 4 ปีที่แล้ว +2

    BIG FAT thank you 👍👍👍 ... You are a STAR... 🌟🌟

    • @rebeloper
      @rebeloper  4 ปีที่แล้ว +1

      Happy to help!! Turn on the Notification Bell because my SwiftUI series is coming soon!

    • @Raj-sk3vc
      @Raj-sk3vc 4 ปีที่แล้ว +1

      @@rebeloper Absolutely, done.....

  • @ruoqiqiu9885
    @ruoqiqiu9885 4 ปีที่แล้ว

    thank you for your sharing. i have a question about the appid and the key.it seems that everything involves these two parameters is to record it in the console. and we dont need to do anything in the sdk, right? because it seems that if we install facebook login ourselves we need to add facebook appid somewhere in the sdk

    • @rebeloper
      @rebeloper  4 ปีที่แล้ว

      Facebook has changed a lot since the publication of this video. If you're interested I can guide you with a mentoring session: support@rebeloper.com

  • @_______6398
    @_______6398 6 ปีที่แล้ว +1

    why do you import 'FBSDKCoreKit' instead of 'FacebookCore' and 'FacebookLogin'? I've spent hours trying to implement facebook sdk login with swift 4 and I'm SO confused. Some tutorials use 'FBSDKCoreKit' while others use 'FacebookCore' and 'FacebookLogin'... What is going on... I have yet to find a tutorial that clarifies the differences and makes it easy to implement with swift 4...

    • @rebeloper
      @rebeloper  6 ปีที่แล้ว +2

      The “FBSDK” libraries are the old ones. The ones with this prefix are the new ones. This is one of the reasons. Some tutorials are old and some are new. Now the second reason is not so obvious: some of the new libraries are built upon the old libraries. And finally: some methods are to be found only I. The old libraries. So this is why sometimes you need to call upon an old “FBSDK” method.

  • @KyCam
    @KyCam 6 ปีที่แล้ว +1

    .anchor is not valid anymore? Do you know the alternative

    • @rebeloper
      @rebeloper  6 ปีที่แล้ว

      Make sure to install LBTAComponents via Cocoapods first. See how to do it in the previous episodes: th-cam.com/play/PL_csAAO9PQ8Ym5RxPGYyIlE3owOp0TNH5.html

  • @marcolapenna9493
    @marcolapenna9493 5 ปีที่แล้ว

    do you have the Service file available anywhere on Github? Please help! Thanks

    • @rebeloper
      @rebeloper  5 ปีที่แล้ว

      It's here: github.com/rebeloper/FirebaseAuthentication

  • @shivaskanthan6144
    @shivaskanthan6144 5 ปีที่แล้ว

    Hi Alex, good video. I tried using pod install for both Firebase Core and Firebase Login. When I import it in code, I'm getting errors at build. FBSDKCore and FBSDKLogin works though but it doesn't have LoginManager(). Any idea how I can solve this?

    • @shivaskanthan6144
      @shivaskanthan6144 5 ปีที่แล้ว +1

      Seems like this is an issue with Swift 4.2. An issue has been logged in Github.

    • @rebeloper
      @rebeloper  5 ปีที่แล้ว +1

      Most probably it is. I'm planning to update my videos to Swift 4.2. Subscribe to not miss any :)

    • @shivaskanthan6144
      @shivaskanthan6144 5 ปีที่แล้ว +1

      @ Rebeloper - Rebel Developer don't think you will have to. Facebook updated the SDK and your steps works well for me with Swift 4.2. Only issue was that FBSDK did not have the return statement for your openurl function in AppDelegate (17:27). I fixed it by copying the code from your repo. Thanks for the help! :)

  • @atomiccreative7341
    @atomiccreative7341 5 ปีที่แล้ว

    15:45 -- This is what worked for me in AppDelegate set up:
    ApplicationDelegate.shared.application(application, didFinishLaunchingWithOptions: launchOptions)

    • @rebeloper
      @rebeloper  5 ปีที่แล้ว

      Thanks for the input

  • @AshShawwa
    @AshShawwa 4 ปีที่แล้ว

    When I put the signInWithFacebookButton code next to every place that included the word service I got this error message: Use of unresolved identifier 'Service'. any help?

    • @rebeloper
      @rebeloper  4 ปีที่แล้ว

      Did you add the resources for this project? store.rebeloper.com/youtube-channel-resources

  • @mikelukadona5116
    @mikelukadona5116 5 ปีที่แล้ว

    Hey Alex, Just wanted to ask why I get an error with code " let authenticationToken = AccessToken.current?.authenticationToken" ? It reads out " Access Token" has no member "authenticationToken" .

    • @mikelukadona5116
      @mikelukadona5116 5 ปีที่แล้ว

      @31:25

    • @rebeloper
      @rebeloper  5 ปีที่แล้ว

      The API has changed a bit. Take a look at a more up to date playlist: th-cam.com/video/hXb2aq5vmFo/w-d-xo.html

    • @Raj-sk3vc
      @Raj-sk3vc 4 ปีที่แล้ว

      hey mike, after some googling and reading from Firebase updated documentation, I fixed the issue and it works for me... try below code, hopefully, it will work for you too, let me know?
      fileprivate func signIntoFirebase() {
      let credential = FacebookAuthProvider.credential(withAccessToken: AccessToken.current!.tokenString)
      Auth.auth().signIn(with: credential) { (user, error) in
      if let error = error {
      print(error)
      return
      }
      print("successfully authenticated with Firebase")
      }
      }

  • @dontlookback9915
    @dontlookback9915 2 ปีที่แล้ว

    hello, I get this error when I am in my simulator and click on the Facebook login button: sorry something went wrong. I have this issue now for 2 days and I redid the code 3 times. personal I don't think the problem lays in the code but it is something else please help

    • @rebeloper
      @rebeloper  2 ปีที่แล้ว

      I can help you find the issue in a mentoring session: rebeloper.com/mentoring
      BTW here's a STEP BY STEP SwiftUI Firebase Auth video: th-cam.com/video/hwbHQf1Mvxk/w-d-xo.html

  • @uguripek4945
    @uguripek4945 4 ปีที่แล้ว

    Hi, Rebel. I am working on Unity Facebook SDK. Build ios project to Xcode. But, library not found : lFBSDKCorekit error. Please help.

    • @rebeloper
      @rebeloper  4 ปีที่แล้ว

      Sorry, I'm not into Unity

  • @asabblah9
    @asabblah9 4 ปีที่แล้ว

    Can someone please provide the code for the Scene Delegate...it's in Obj C on the facebook site and I am a newbie so don't know how to translate it.
    Thanks

    • @rebeloper
      @rebeloper  4 ปีที่แล้ว

      It's not that easy to explain the ObjC -> Swift code. You can always hire me for a mentoring session and I'll show you how: support@rebeloper.com
      Also let me know what you want to learn next: forms.gle/5GoVFuA79QRanbHXA

  • @gerardrierapuig8729
    @gerardrierapuig8729 4 ปีที่แล้ว

    I can't add the fbsdkapplicationdelegate, xcode doesn't find it i don't know why. I have already imported fbdscorekit. Can anyone help me, please?

    • @rebeloper
      @rebeloper  4 ปีที่แล้ว +1

      Maybe it's just a function name change...

    • @gerardrierapuig8729
      @gerardrierapuig8729 4 ปีที่แล้ว

      @@rebeloper Hi, yes. Now the funcion is called "ApplicationDelegate" as is. Thank you for the reply!

    • @rebeloper
      @rebeloper  4 ปีที่แล้ว

      Thanks for letting me know that. What type of app are you building?

  • @hectorsvill
    @hectorsvill 4 ปีที่แล้ว

    btw FBSDKApplicationDelegate is now ApplicationDelegate

    • @rebeloper
      @rebeloper  4 ปีที่แล้ว +1

      Yep, the repo is constantly being updated