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
.
Add this in addition to what you have in AppDelegate
for me the "FBSDKApplicationDelegate" doesn't work for the latest Facebook Swift SDK version v0.2.0
You can find my implementation for v0.2.2 here: https://gist.github.com/mbecker/bdbd28cd11394085c01cf442aaa42c72
I have experienced the same problem with Facebook and Twitter integration.I have solved it as follows.
Don't forget to set Keychain Sharing project targets -> Capabilities -> Keychain Sharing -> Toggle Switch ON
you can follow this http://ashishkakkad.com/2015/05/facebook-login-swift-language-ios/
Hi I raised this issue to facebook developer support and the issue is that I have not implemented the correct delegate methods for iOS10. and you can find the correct delegate implementation here
Evn: iOS 10, XCode 8.3.2, Swift 3, facebook-sdk-swift-0.2.0 Tested and worked.
Since above answers are indicated as deprecated code, I have changed the syntax.
https://gist.github.com/jgchoi/097b59d85d6b378a81925be93a62fef9