# Unknown error when login with Lock +Social + Facebook

**URL:** <https://community.auth0.com/t/unknown-error-when-login-with-lock-social-facebook/6604>\
**Category:** Get Help\
**Tags:** facebook, swift, login\
**Created:** [May 13, 2017, 2:15am UTC](https://community.auth0.com/t/unknown-error-when-login-with-lock-social-facebook/6604 "2017-05-13T02:15:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mitch.murphy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mitch.murphy/32/7166_2.png) [@mitch.murphy](https://community.auth0.com/u/mitch.murphy)\
**Post date:** [May 13, 2017, 2:15am UTC](https://community.auth0.com/t/unknown-error-when-login-with-lock-social-facebook/6604/1 "2017-05-13T02:15:04Z")

</div>

I am trying to get authentication implemented in my iOS (Swift) app using Auth0 as I want to add social integration (Facebook, Google and Instagram). I followed all of the steps on their starter guide. I setup the connections on my Auth0 console, and tested them (click the try button once setup).

However, once a user taps on Login with Facebook/Google/instagram, onError is called and this is the localized description: The operation couldn’t be completed. (Lock.OAuth2AuthenticatableError error 1.)

Furthermore, this error message is briefly displayed after login callback:  
![alt text][1]

I have been working on this for the past few days with no luck ☹ I also could not find that error code anywhere…

Lock  
.classic()  
.onError(callback: { (error) in  
print(error.localizedDescription)  
return  
})  
.onAuth { credentials in  
// Do something with credentials e.g.: save them.  
print(credentials)  
// Lock will not save these objects for you.  
// Lock will dismiss itself automatically by default.  
}  
.present(from: self)

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [May 23, 2017, 11:45am UTC](https://community.auth0.com/t/unknown-error-when-login-with-lock-social-facebook/6604/2 "2017-05-23T11:45:51Z")

</div>

Can you see any logs in Auth0 for the login attempts?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:53am UTC](https://community.auth0.com/t/unknown-error-when-login-with-lock-social-facebook/6604/3 "2018-03-02T05:53:53Z")

</div>


