No such module 'Facebook Login'

Working on Application with Facebook Login API. I'm currently just trying to get the Facebook Login Button on my viewController, but I keep getting this error: No such module 'Facebook Login'. It is next to my import statement: "import FacebookLogin"


I installed CocoaPods and used a pod file to install the Facebook Files, just like the Facebook Developer SDK said to. I have tried a lot of options, but Swift cannot seem to find my FacebookLogin module. All the kits are found but none of the .frameworks are.


Yes we are opening up .XCWorkspace instead of the default project file.


I am using XCODE 9.

  • import FacebookLogin is no longer available. replace it with import FBSDKLoginKit

    By the way, in pod file must have pod 'FBSDKLoginKit'

Add a Comment

Replies

Hey try this

1. add pod 'FacebookLogin' "to your podfile,

2. save it,

3. close Xcode,

4. open the PROJECT FOLDER in terminal,

5. type in pod init

6. then pod install

import FacebookLogin is no longer available. replace it with

import FBSDKLoginKit

By the way, in Podfile must have

pod 'FBSDKLoginKit'