This repository has been archived by the owner on Nov 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 336
Improve ambiguous logIn()
function names in LoginManager.
#95
Comments
Hey @nitisha1, Unfortunately, without more code around this - it could be very tricky to help you. func logIn(_ permissions: [ReadPermission] = [.publicProfile],
viewController: UIViewController? = nil,
completion: ((LoginResult) -> Void)? = nil) or func logIn(_ permissions: [PublishPermission] = [.publishActions],
viewController: UIViewController? = nil,
completion: ((LoginResult) -> Void)? = nil) Here is the updated method signature that I recommend replacing it with: loginManager.logIn([ .public_profile, .email ], viewController: self) {
...
} This will eliminate the ambiguousness and will let you compile. |
nitisha1
changed the title
Ambiguous reference to LoginManager
Improve ambiguous Nov 7, 2016
logIn()
function names in LoginManager.
@nlutsenko thanks a lot ,it worked. |
don't work for me |
I am not using strings and still getting this error. |
Me too. |
Me too |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi,
I've integrated facebook-sdk-swift manually in my ios project in xcode8 following documents (https://developers.facebook.com/docs/swift/getting-started). I'm getting error "Ambiguous reference to memeber logIn(_:viewController:completion:)"on
loginManager.logIn(["public_profile","email"], viewController: self) { loginResult in switch loginResult { case .Failed(let error): print(error) case .Cancelled: print("User cancelled login.") case .Success(let grantedPermissions, let declinedPermissions, let accessToken): print("Logged in!") }
what i've done wrong any help please?
The text was updated successfully, but these errors were encountered: