I was able to integrate Google SignIn and Facebook SignIn effortlessly due to their transparent docs. However, I'm having trouble with linked in. All I want to do is get the userId from a successful LinkedIn login attempt.
As shown in the docs: https://developer.linkedin.com/docs/android-sdk
I successfully generated a debug hash key. But now, I'm just having trouble figuring out how to configure linkedIn Signin in my project.
I have Facebook & Google's login dependencies in my app, but What dependencies do I need in my build.gradle for LinkedIn Signin?
dependencies { implementation 'com.facebook.android:facebook-login:[4,5)' //Facebook implementation 'com.google.android.gms:play-services-auth:15.0.1' //Google implementation <insert_linkedin_signInDependency_Here> }I am able to successfully get userId from Facebook and Google
setOnClickListenermethods. But am unsure how to get userId when linkedIn button is clicked.//Getting Facebook userId loginButton.registerCallback(callbackManager, new FacebookCallback<LoginResult>() { @Override public void onSuccess(LoginResult loginResult) { AccessToken accessToken = loginResult.getAccessToken(); final String userID = accessToken.getUserId(); } });