I am using the socialauth-android library to log users in with Facebook, Twitter and LinkedIn.
So far I couldn't find a way to get the oAuth-token back. Is there a way to access it without reimplementing parts of the library?
Also, when I want to sign in using socialauth (see code below) I have to type in the username and the password manually although I have all accounts already set up with the device. Can you tell socialauth to use this accounts?
buttonFacebook.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
mSocialAdapter.authorize(ActivityLogin.this, Provider.FACEBOOK);
}
});
I found out the way to get the token is
String token = mSocialAdapter.getCurrentProvider().getAccessGrant().getKey();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With