twitter - Scribe OAuthException No Response returned for Service.getRequestToken() after ServiceBuilder.build() -


i trying authorization url allow users authorize app twitter api calls.

i have registered app @ twitter , gotten consumer key , secret.

scribe-1.1.3.jar , commons-code-1.5.jar in classpath.

i running behind proxy , added system.setproperty("java.net.usesystemproxies", "true");

the code follows:

servicebuilder lbuilder = new servicebuilder(); lbuilder.provider(twitterapi.class); lbuilder.apikey("----"); lbuilder.apisecret("----"); oauthservice lservice = lbuilder.build();  token laccesstoken = lservice.getrequesttoken(); 

the last line throws exception:

org.scribe.exceptions.oauthexception: response body incorrect. can't extract token , secret this: 'failed validate oauth signature , token'     @ org.scribe.extractors.tokenextractorimpl.extract(tokenextractorimpl.java:41)     @ org.scribe.extractors.tokenextractorimpl.extract(tokenextractorimpl.java:27)     @ org.scribe.oauth.oauth10aserviceimpl.getrequesttoken(oauth10aserviceimpl.java:45) 

it looks twitter response empty or missing.

also, using servlet based app , of examples retrieving responses system.in.

can capture incoming responses through scribe api?

thank you.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -