Search code examples
iosfacebookiphone-6

FBLoginView read permissions doesn't work


I created an app which asks user to login with Facebook. This part of code was working totally perfect on each device:

self.facebookButton.readPermissions = @[@"public_profile", @"email"];
self.facebookButton.delegate = self;

But I found that it doesn't work on iPhone 6 (device or simulator). Error is about method

[UIButton setReadPermissions:] unrecognized selector.

Anyone help me, I just have no idea what it can be and how I can fix it


Solution

  • Nvm, guys, I've figured it out. I had the problem with UIController (didn't connect login view with outlet). I'm sorry for wasting your time.