# Facebook & Google Login Without Lock Android fails

**URL:** <https://community.auth0.com/t/facebook-google-login-without-lock-android-fails/19364>\
**Category:** Get Help\
**Tags:** google, android, facebook, login\
**Created:** [December 24, 2018, 11:24pm UTC](https://community.auth0.com/t/facebook-google-login-without-lock-android-fails/19364 "2018-12-24T23:24:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartuPuri](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/martupuri/32/10166_2.png) [@MartuPuri](https://community.auth0.com/u/MartuPuri)\
**Post date:** [December 24, 2018, 11:24pm UTC](https://community.auth0.com/t/facebook-google-login-without-lock-android-fails/19364/1 "2018-12-24T23:24:18Z")

</div>

I’m trying to login with Facebook without Locks because I don’t want to show the Auth0 Login UI. But I’m having two problems. The first one is that the provider start method receives an Activity so I can never get the onActivityResult in my LoginFragment.  
The second one when I try to login with Facebook I got this message: “com.auth0.android.authentication.AuthenticationException: An error occurred when trying to authenticate with the server.”  
Can you help me with my code? Also I want to remove the ugly thing that i have to do in the onActivityResult of my Activity

 ![58%20PM](https://global.discourse-cdn.com/auth0/original/2X/a/afa6a4c07f3918467aa7aeb70d0dd65657397b96.png) ![54%20PM](https://global.discourse-cdn.com/auth0/original/2X/a/afaee3c20250727149f2492e6fc865b352fd404e.png) ![34%20PM](https://global.discourse-cdn.com/auth0/original/2X/3/31129ec95a1e07ca49287a017d1890f9883aeef2.png)

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 26, 2018, 6:52pm UTC](https://community.auth0.com/t/facebook-google-login-without-lock-android-fails/19364/3 "2018-12-26T18:52:34Z")

</div>

Hey there @MartuPuri, unfortunately, that error you recieved doesn’t detail too much. Please enable HTTP logging by calling [auth0#setLoggingEnabled](https://github.com/auth0/Auth0.Android/blob/master/auth0/src/main/java/com/auth0/android/Auth0.java#L203) on your `Auth0` instance and then come back and share the extended error message.

Also you can customize the logo you use with lock via the configuration options as described below.

[https://auth0.com/docs/libraries/lock/v11/configuration](https://auth0.com/docs/libraries/lock/v11/configuration)

---

<div class="post-metadata">

**Author:** ![MartuPuri](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/martupuri/32/10166_2.png) [@MartuPuri](https://community.auth0.com/u/MartuPuri)\
**Post date:** [December 26, 2018, 7:06pm UTC](https://community.auth0.com/t/facebook-google-login-without-lock-android-fails/19364/4 "2018-12-26T19:06:03Z")

</div>

Hi James, I found a way using WebAuthProvider instead of FacebookProvider and GoogleProvider. Is okay if I use WebAuthProvider with my custom view or should I use Lock?

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [December 27, 2018, 2:34pm UTC](https://community.auth0.com/t/facebook-google-login-without-lock-android-fails/19364/5 "2018-12-27T14:34:43Z")

</div>

Actually in our quickstart guide for Android we leverage both WebAuthProvider and Lock. I think in the end what really matters is your assets are being delivered appropriately, so as long as that’s happening you’re good! Thanks!

> **[Auth0 Android SDK Quickstarts: Login](https://auth0.com/docs/quickstart/native/android/00-login)**
>
> This quickstart demonstrates how to add user login to an Android application using Auth0.

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [January 4, 2019, 3:06pm UTC](https://community.auth0.com/t/facebook-google-login-without-lock-android-fails/19364/6 "2019-01-04T15:06:29Z")

</div>

I wanted to follow up @MartuPuri and see if you had any additional questions on this subject. Thanks!

---

<div class="post-metadata">

**Author:** ![James.Morrison](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/james.morrison/32/13507_2.png) [@James.Morrison](https://community.auth0.com/u/James.Morrison)\
**Post date:** [January 18, 2019, 7:06pm UTC](https://community.auth0.com/t/facebook-google-login-without-lock-android-fails/19364/7 "2019-01-18T19:06:32Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
