I have given social authentication via Linked In. I have successfully integrated the mobile sdk into my project. Now the question is, how to get access token.
I didn't find any way to fetch access token from sdk.
Please help me.
I have given social authentication via Linked In. I have successfully integrated the mobile sdk into my project. Now the question is, how to get access token.
I didn't find any way to fetch access token from sdk.
Please help me.
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
// Add this line to your existing onActivityResult() method
LISessionManager.getInstance(getApplicationContext()).onActivityResult(this, requestCode, resultCode, data);
Log.i("Access token->", LISessionManager.getInstance(getApplicationContext()).getSession().getAccessToken().getValue());
}
You can achieve it by calling webview intent for authorization and then on response you can retrieve it in your activity. Just follow the steps: