开发者

"Request token or token secret not set in server reply." when attempting to get the request token

开发者 https://www.devze.com 2023-03-04 16:39 出处:网络
I\'m using the Twitter API with Signpost and Twitter4J on Android. My code fails here: consumer = new CommonsHttpOAuthConsumer(TWITTER_KEY, TWITTER_SECRET);

I'm using the Twitter API with Signpost and Twitter4J on Android.

My code fails here:

consumer = new CommonsHttpOAuthConsumer(TWITTER_KEY, TWITTER_SECRET);
provider = new DefaultOAuthProvider("https://api.twitter.com/oauth/request_token",
"https://api.twitter.com/oauth/access_token",
"https://api.twitter.com/oauth/authorize");

// Here:
String authUrl = provider.retrieveRequestToken(consumer, CALLBACK);

After a lengthy wait for the API, I get the exception:

Request token or token secret not set in server 开发者_Python百科reply. The service provider you use is probably buggy.

I doubt this is Twitter's problem, so why does this happen and how can I fix it?

0

精彩评论

暂无评论...
验证码 换一张
取 消