【问题标题】:Foursquare callback error Uncaught exceptionFoursquare 回调错误 未捕获的异常
【发布时间】:2012-09-20 01:34:30
【问题描述】:

我在应用程序中使用foursquare API。当我在本地机器上运行应用程序时我没有任何问题,但是在用户允许应用程序并被重定向到回调 url 后,我在服务器上收到此错误。

Fatal error: Uncaught exception 'EpiFoursquareException'
in /home/content/40/9029540/html/earlybirds/test/lib/EpiFoursquare.php:252
Stack trace:
#0 /home/content/40/9029540/html/earlybirds/test/lib/EpiFoursquare.php(208): EpiFoursquareException::raise(Object(EpiCurlManager), false) 
#1 /home/content/40/9029540/html/earlybirds/test/lib/EpiFoursquare.php(196): EpiFoursquareJson->__get('response')
#2 /home/content/40/9029540/html/earlybirds/test/callback.php(45): EpiFoursquareJson->offsetGet('access_token')
#3 {main} thrown in /home/content/40/9029540/html/earlybirds/test/lib/EpiFoursquare.php on line 252

有人知道原因吗? 我使用 PHP 和 mysql

【问题讨论】:

    标签: exception callback foursquare


    【解决方案1】:

    确保您在构建身份验证 URL 时发送了 redirect_uri 参数,并且它与 APP 详细信息页面上的参数匹配。我必须制作两个应用程序,一个用于本地测试,一个用于在我的开发服务器上进行测试,当然,它有不同的 URL。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-08-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-07
      相关资源
      最近更新 更多