0

我已经在我的 play 2 应用程序中成功安装了securesocial,并且它适用于 google 和 facebook。但我在推特上有问题

我的 conf 文件有以下内容

#
# Twitter
#
securesocial.twitter.requestTokenURL=https://twitter.com/oauth/request_token
securesocial.twitter.accessTokenURL=https://twitter.com/oauth/access_token
securesocial.twitter.authorizationURL=https://twitter.com/oauth/authenticate
securesocial.twitter.consumerKey=mykey
securesocial.twitter.consumerSecret=mysecret

但我收到以下异常。

securesocial.provider.AuthenticationException: Authorization failed (server replied with a 401). This can happen if the consumer key was not correct or the signatures did not match.

我的密钥和秘密与我为此应用程序创建的 twitter API 帐户应用程序中的相同。我还包括了调用此请求的网站和@anywhere 域。

有任何想法吗?

4

1 回答 1

1

确保您的计算机中的时间设置正确。如果您计算机中的本地时间与其服务器中的时间相比超出了一些偏移量,Twitter 将返回该错误。希望这可以帮助。

于 2012-10-02T16:48:45.670 回答