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 アカウント アプリのものと同じです。また、このリクエストが呼び出された Web サイトと @anywhere ドメインも含めました。

何か案は?

4

1 に答える 1

1

コンピュータの時刻が正しく設定されていることを確認してください。あなたのコンピューターの現地時間がサーバーの時間と比べてずれている場合、Twitter はそのエラーを返します。お役に立てれば。

于 2012-10-02T16:48:45.670 に答える