0
votes

I am using the Facebook Login for my iOS app. However the login flow is not using the native iOS Facebook integration.

I am using Facebook iOS SDK 3.17 (via pod) and I have followed the setup instructions. The login is working, it is simply not showing the native login dialog. Instead it opens the Facebook iOS app to authenticate...

Any ideas?

1

1 Answers

1
votes

Facebook changed their login behavior. You can get this to work again by setting the property "loginBehavior" on your FBLoginView to "FBSessionLoginBehaviorUseSystemAccountIfPresent" in your viewDidLoad method.

self.loginView.loginBehavior = FBSessionLoginBehaviorUseSystemAccountIfPresent;