# Social Login using Android SDK AuthenticationAPIClient

**URL:** <https://community.auth0.com/t/social-login-using-android-sdk-authenticationapiclient/9118>\
**Category:** Get Help\
**Tags:** android-auth, android-client\
**Created:** [January 3, 2018, 3:18pm UTC](https://community.auth0.com/t/social-login-using-android-sdk-authenticationapiclient/9118 "2018-01-03T15:18:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rishik](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rishik](https://community.auth0.com/u/rishik)\
**Post date:** [January 3, 2018, 3:18pm UTC](https://community.auth0.com/t/social-login-using-android-sdk-authenticationapiclient/9118/1 "2018-01-03T15:18:21Z")

</div>

I am using the latest version of the Android SDK and want to implement social login using my own custom UI. When i try calling the AuthenticationAPIClient loginWithOAuthAccessToken it tries calling the “/oauth/access\_token” endpoint to which i get a 404 error.

From the Auth0 API documentation I understand that the “/oauth/access\_token” endpoint is a legacy one and we should be using “/authorize” endpoint for social login ([Authentication API - Auth0 Docs](https://auth0.com/docs/api/authentication#social)) . I wanted to check how can we achieve this using the Android Auth0 SDK?

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [January 3, 2018, 5:47pm UTC](https://community.auth0.com/t/social-login-using-android-sdk-authenticationapiclient/9118/2 "2018-01-03T17:47:33Z")

</div>

As you mentioned the `/oauth/access_token` is deprecated and the recommendation is to use `/authorize`. The [Android quickstart](https://auth0.com/docs/quickstart/native/android/00-login) shows how you can accomplish this through the SDK `WebAuthProvider`; in particular, you should focus in the [start authentication](https://auth0.com/docs/quickstart/native/android/00-login#start-the-authentication) section. Have in mind that although being the recommendation it does not provide the same exact characteristics of the deprecated endpoint you mentioned.

---

<div class="post-metadata">

**Author:** ![rishik](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rishik](https://community.auth0.com/u/rishik)\
**Post date:** [January 3, 2018, 6:00pm UTC](https://community.auth0.com/t/social-login-using-android-sdk-authenticationapiclient/9118/3 "2018-01-03T18:00:04Z")

</div>

Thanks for the answer :). Our application requires a very specific look and feel and we wont be able to move to the auth0 web hosted login screen as we cannot let the user see a browser window being opened (we cant seem to find a way to hide the address bar for the web view). Is there a way to have a callback to the native app after facebook authorization?

---

<div class="post-metadata">

**Author:** ![rishik](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rishik](https://community.auth0.com/u/rishik)\
**Post date:** [January 3, 2018, 6:32pm UTC](https://community.auth0.com/t/social-login-using-android-sdk-authenticationapiclient/9118/4 "2018-01-03T18:32:25Z")

</div>

Sorry for my previous comment i got a bit confused between WebAuthProvider and the hosted auth0 login page. Your suggestion works perfectly. Thanks!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 9:18am UTC](https://community.auth0.com/t/social-login-using-android-sdk-authenticationapiclient/9118/5 "2019-07-25T09:18:45Z")

</div>


