2012-05-25 21 views
1

我在應用程序中使用foursquare API。當我在本地機器上運行應用程序時,我沒有任何問題,但在服務器上,當用戶允許應用程序並重定向到回調URL後,出現此錯誤。Foursquare回調錯誤未捕獲的異常

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

回答

0

確保您在構建auth url時發送redirect_uri參數,並且它與APP詳細信息頁面上的參數匹配。我必須製作兩個應用程序,一個用於在本地進行測試,另一個用於在我的開發服務器上進行測試,當然,這些服務器具有不同的URL。

相關問題