Search code examples
iosswiftfacebookfacebook-ios-sdk

Differences BW Facebook Login and FBSDKLoginKit Pod and which one to use?


I was trying to integrate facebook login in my iOS app. I am reading the official docs for this purpose.

On this getting started link. Documentation say to use the following pods

pod 'FacebookCore'
pod 'FacebookLogin'
pod 'FacebookShare'

So i understood that i have to use pod FacebookLogin and that's it.,

BUT

On this iOS login Docs page, Docs say to use

 pod 'FBSDKLoginKit'
  1. I am totally confused about which one to use.
  2. What's the difference between the two?

Note: I just want to perform facebook login in my app and nothing else.


Solution

  • As of November 2019 the standalone swift SDK has been deprecated in favor of a single repository.

    Therefore, it you should be using FBSDKCoreKit, FBSDKShareKit and FBSDKLoginKit with Cocoapods.

    We plan on archiving this repo on November 1, 2019. This gives users one month to follow the instructions below for migrating to the new source code location. At this time we will also deprecate the CocoaPods FacebookCore, FacebookLogin, and FacebookShare.

    The current documentation is a little bit confusing, as this section is actually referring to Swift Package Manager, not Cocoapods.

    For projects that include Swift, use 'FacebookCore', 'FacebookLogin', and 'FacebookShare'

    For projects that do not include Swift, use 'FBSDKCoreKit' 'FBSDKLoginKit' and 'FBSDKShareKit'