1

I update My Facebook sdks to 4.6 and Parse to 1.8.5 , and after that I notice that in iOS 7,8 in login the app is go to Facebook app for premmisions and in iOS 9 the app go to safari.

And I try to add setLoginBehavior before logInInBackgroundWithReadPermissions but it did not solve the problems.

[[PFFacebookUtils facebookLoginManager] setLoginBehavior:FBSDKLoginBehaviorSystemAccount];


NSArray *permissions = [NSArray arrayWithObjects:@"email",@"user_friends", nil];
[PFFacebookUtils logInInBackgroundWithReadPermissions:permissions block:^(PFUser *user, NSError *error)
 {
}];

what can be the problem ?

Roei Nadam
  • 1,780
  • 1
  • 15
  • 33

1 Answers1

2

scbojer says:

The (Parse) Facebook login in iOS9 by default will use Facebook in the safari browser instead of the Facebook App as this is now regarded as the best user experience.

https://stackoverflow.com/a/32710449/1180974

I am having the same problem, and I completely disagree with this "best user experience" argument. I have not found any workaround for the moment either.

Community
  • 1
  • 1
cduguet
  • 442
  • 3
  • 21
  • I downgrade My Facebook sdks to 4.5.1 files and keek the xml in P.list that need to add in sdks 4.6 and it work grate ! – Roei Nadam Sep 30 '15 at 10:49
  • That's just terrible... Who would sign in on Safari when you have the app installed? – Mattias Nov 28 '15 at 10:53