Closed GoogleCodeExporter closed 8 years ago
More people seem to have similar issues:
http://stackoverflow.com/questions/22776780/how-to-get-and-reuse-access-token-in
-social-auth-android
Original comment by pligor.g...@gmail.com
on 30 Apr 2014 at 11:54
Please try follwing:-
val socialAuthManager = new SocialAuthManager
socialAuthManager.setSocialAuthConfig(socialAuthConfig)
val providerId = "linkedin"
val linkedinAccessToken = "36cc6f17-a8e3-4dab-8438-575cf6cdc8a0"
val accessGrant = new AccessGrant();
accessGrant.setKey(linkedinAccessToken);
accessGrant.setProviderId(providerId);
AuthProvider provider = socialAuthManager.connect(accessGrant);
Profile profile = provider.getUserProfile();
Original comment by tarun.na...@3pillarglobal.com
on 1 May 2014 at 5:25
Is it working for you?
Original comment by tarun.na...@3pillarglobal.com
on 15 May 2014 at 4:21
Hi,
I'm using the latest version of the library for Android.
How can I obtain access token that I can reuse in the backend server?
Currently I'm using following code to get it:
AuthProvider provider = social_auth_adapter.getCurrentProvider();
if(provider!=null)
linkedInToken = provider.getAccessGrant().getKey();
Then I want to use it on my PHP backend to retrieve user's LinkedIn profile,
but I get "401 invalid access token" error.
Original comment by marcin.n...@gmail.com
on 20 May 2014 at 10:17
If you are still facing this issue, please post it on
https://code.google.com/p/socialauth-android/
Original comment by tarunnag...@gmail.com
on 31 Oct 2014 at 1:46
Original issue reported on code.google.com by
pligor.g...@gmail.com
on 30 Apr 2014 at 11:17