使用twitter4j在Oauth中出现问题

Shw*_*nka 2 java oauth twitter4j

这是我在打电话时得到的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>
Run Code Online (Sandbox Code Playgroud)

我多次调试代码,并在上面调用之前找到了所有凭据.任何使用过twitter4j的人都能指出问题吗?或者我应该使用另一个oauth库?有什么建议?

小智 9

我有同样的问题,但当我填写回调URL字段时,我的应用程序正常运行.也许你应该填写回调网址的字段.