【问题标题】:Foursquare API error: Missing access credentialsFoursquare API 错误:缺少访问凭据
【发布时间】:2014-05-29 02:00:04
【问题描述】:

我正在制作一个 Android 应用程序并尝试使用 Foursquare API。我开始使用foursquare推荐的库easyFoursquare4Android

我在https://foursquare.com/developers/apps 注册了我的foursquare 应用程序。我更改了 easyFoursquare4Android 库中的 CLIENT_IDCLIENT_SECRET 常量值。

我尝试getVenuesNearby() 并收到此错误消息:

Missing access credentials. See https://developer.foursquare.com/docs/oauth.html for details.

我也在使用 Facebook SDK,并使用与 Facebook 相同的Certificate fingerprint <SHA1>

我可以重复使用我在 Facebook 应用中使用的 android 密钥哈希,还是必须创建一个新的?

【问题讨论】:

    标签: android foursquare


    【解决方案1】:

    我通过记录发送到 API 的字符串解决了这个问题。

    我从未调用过 EasyFoursquare.requestAccess(this)EasyFoursquareAsync.requestAccess(this),它们通过获取 oauth 令牌来请求访问 API。

    所以我实际上从未在我的请求中发送过CLIENT_IDCLIENT_SECRET

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-02-20
      • 2018-06-02
      • 2013-03-06
      • 2015-08-22
      • 2015-03-19
      • 1970-01-01
      • 2016-01-14
      相关资源
      最近更新 更多