Foursquare回调错误未捕获异常

时间:2012-05-25 11:51:30

标签: exception callback foursquare

我在应用程序中使用foursquare API。我在本地计算机上运行应用程序时没有问题但是在服务器上我在用户允许应用程序后出现此错误并被重定向到回调网址。

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

1 个答案:

答案 0 :(得分:0)

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