缺少 Twitter 身份验证配置 (ParseTwitterUtils)

Twitter auth configuration missing (ParseTwitterUtils)

没有得到任何将 Twitter 身份验证与解析服务器集成的有效解决方案。我已经阅读了 github 上几乎所有的解决方案并应用了它,但是没有 luck.More 我使用过 ParseUI 项目的信息。

https://github.com/parse-community/ParseUI-Android

我使用了 parse'com.parse:parsetwitterutils-android:1.10.6' 提供的这个库来验证用户。但没有运气。在互联网上搜索后,我发现有些人告诉我要在 index.js 页面上添加以下代码。

oauth: {
  twitter: {
  consumer_key: "qweREbUdsfsdfsdfsdfsd4wIg9EX", // REQUIRED
  consumer_secret: "AZrUDjnEVUsdfsdfsdfsdfsdfsdfsdfxcpxBtM0X3" // REQUIRED
  },
  facebook: {
          appIds: "8489456465"
       }
  } 

然后我收到回复:

04-27 01:53:32.340 16920-17090/app.com.parse.example D/OkHttp: {"code":1,"error":"Twitter auth configuration missing"}
<-- END HTTP (55-byte body)
04-27 01:53:47.148 16920-17113/app.com.parse.example D/OkHttp: {"authData":{"twitter":{"consumer_key":"VdzzbGHfHgFhgFHGf4wIg9EX","auth_token":"157620898-qbODfHyHJKGHGJHGJHGJHGmF38LeJ2cd","screen_name":"blackjack","consumer_secret":"AZrUwerHJGJHGJHGJHGhgjhgZwJopxBtM0X3","id":"1554545698","auth_token_secret":"PK6IgEQMrszxcjhgjhgjhjhJHGrh1Ure8IGbuPX6H"}}}
--> END POST (319-byte body)
04-27 01:53:47.239 16920-17113/app.com.parse.example D/OkHttp: {"code":1,"error":"Twitter auth configuration missing"}
<-- END HTTP (55-byte body)
04-27 01:53:47.255 16920-16920/app.com.parse.example W/ParseLoginFragment: Twitter login failed, exception: com.parse.ParseRequest$ParseRequestException: Twitter auth configuration missing

还得到了:

04-27 16:31:33.705 4998-4998/com.parse.loginsample.basic     W/ParseLoginFragment: Twitter login failed, exception:     com.parse.ParseRequest$ParseRequestException: i/o failure

参考answer/discussion没有解决我的问题:

https://github.com/parse-community/parse-server/issues/973

Parse server twitter authentication: Twitter auth integrated but unable to create session to use on client side

oauth 选项已弃用,将在未来的版本中删除,请改用 auth 选项。

http://docs.parseplatform.org/parse-server/guide/#oauth-and-3rd-party-authentication

查看更改日志:

https://github.com/parse-community/parse-server/blob/master/CHANGELOG.md#230

示例:

auth: {
  twitter: {
  consumer_key: "qweREbUdsfsdfsdfsdfsd4wIg9EX", // REQUIRED
  consumer_secret: "AZrUDjnEVUsdfsdfsdfsdfsdfsdfsdfxcpxBtM0X3" // REQUIRED
  },
  facebook: {
      appIds: "8489456465"
   }
}