这就是我打电话时得到的twitter.getOauthRequestToken(callbackUrl)
。我添加了正确的消费者密钥和消费者秘密。
401:Authentication credentials (https://dev.twitter.com/docs/auth) were missing or incorrect. Ensure that you have set valid conumer key/secret, access token/secret, and the system clock in in sync.
<?xml version="1.0" encoding="UTF-8"?>
<hash>
<error>Desktop applications only support the oauth_callback value 'oob'</error>
<request>/oauth/request_token</request>
</hash>
我多次调试代码并在进行上述调用之前找到了每个凭据。有没有用过twitter4j的可以指出问题吗?或者我应该使用另一个 oauth 库吗?有什么建议么?