Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FB Login using Swift 3 not returning any values and not get back the user to the App after successful login

I'm using iOS 10 Swift 3 to integrate FB Login. I have followed all steps from Facebook documentation. Now the issue is, after successful login it doesn't returning any values and not get back the user to the app.

Note: The same works perfectly in Swift 2.

like image 580
Ragul Avatar asked Sep 22 '16 07:09

Ragul


People also ask

How to integrate Facebook login in iOS swift?

In Xcode, click File > Swift Packages > Add Package Dependency. In the dialog that appears, enter the repository URL: https://github.com/facebook/facebook-ios-sdk. In Version, enter the version number of the latest Facebook SDK for iOS. Complete the prompts to select the libraries you'd like to use in your project.

How do I connect my iOS to Facebook?

Steps. Tap the Settings app on the device. Scroll and tap the "Facebook" button, which can be found just a little bit below the button labeled Twitter. Tap and enter your Facebook account credentials (username and password) into the login screen's appropriate boxes.


1 Answers

Don't forget to set Keychain Sharing project targets -> Capabilities -> Keychain Sharing -> Toggle Switch ON

Keychain Sharing status

you can follow this http://ashishkakkad.com/2015/05/facebook-login-swift-language-ios/

like image 175
JimChien Avatar answered Sep 22 '22 14:09

JimChien