Question

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);
        }
    });
Was it helpful?

Solution

I found out the way to get the token is

String token = mSocialAdapter.getCurrentProvider().getAccessGrant().getKey();
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top