I am having trouble getting the request token from LinkedIn. I keep on getting the same error ecxeption "Communication with the service provider failed: https://api.linkedin.com/uas/oauth/requestToken"
I dont know why this is happening as it used to work fine previously. but now that i am trying it with the same code some time back, it just wont work. My code is following:
public final LinkedInOAuthService oAuthService = LinkedInOAuthServiceFactory
.getInstance().createLinkedInOAuthService(CONSUMER_KEY,
CONSUMER_SECRET);
public static final String OAUTH_CALLBACK_URL = "x-oauthflow-linkedin"
+ "://" + "litestcalback";
try
{
liToken = oAuthService.getOAuthRequestToken(OAUTH_CALLBACK_URL);
Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse(liToken
.getAuthorizationUrl()));
startActivity(i);
}catch (Exception e) {
// TODO: handle exception
liToken = null;}
Please can anyone tell me what I am doing wrong.