我已经在我的 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 域。
有任何想法吗?