hybridauth - codeigniter - php - 重定向网址上的致命错误

时间:2015-01-10 06:42:43

标签: php codeigniter login hybridauth

我正在使用HybridAuth库进行社交登录。

一切都在localhost上完美运行。

它也在我的托管服务器上工作,但现在我突然得到这个错误:

当我尝试使用谷歌时:

  

致命错误:未捕获的异常'异常',消息为'用户个人资料   请求失败! Google返回了一个错误:异常'Exception'   消息'授权服务已返回:'   /home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/thirdparty/OAuth/OAuth2Client.php:82   堆栈跟踪:#0   /home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Provider_Model_OAuth2.php(114):   OAuth2Client-> authenticate('4 / P-5SuqvrU0DDy ...')#1   /home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Endpoint.php(175):Hybrid_Provider_Model_OAuth2-> loginFinish()#2   /home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Endpoint.php(56):   Hybrid_Endpoint :: processAuthDone()#3   /home/moviesaints/public_html/dev/application/third_party/hybridauth/index.php(15):   Hybrid_Endpoint :: process()#4   /home/moviesaints/public_html/dev/application/controllers/user/hauth.php(298):   require_once('/ home / moviesain ...')#5 [内部函数]:   HAuth-> endpoint()#6 / home / mov in   /home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Auth.php   在第147行

和facebook一起尝试时:

  

致命错误:带有消息的未捕获异常'异常'   '身份验证失败! Facebook返回了无效的用户ID。在   /home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Providers/Facebook.php:91   堆栈跟踪:#0   /home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Endpoint.php(175):Hybrid_Providers_Facebook-> loginFinish()#1   /home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Endpoint.php(56):   Hybrid_Endpoint :: processAuthDone()#2   /home/moviesaints/public_html/dev/application/third_party/hybridauth/index.php(15):   Hybrid_Endpoint :: process()#3   /home/moviesaints/public_html/dev/application/controllers/user/hauth.php(298):   require_once('/ home / moviesain ...')#4 [内部函数]:   HAuth->端点()#5   /home/moviesaints/public_html/dev/system/core/CodeIgniter.php(359):   call_user_func_array(Array,Array)#6   /home/moviesaints/public_html/dev/index.php(202):   require_once('/ home / moviesain ...')#7 {main}下一个异常   “例外”,消息“正宗”   /home/moviesaints/public_html/dev/application/third_party/hybridauth/Hybrid/Auth.php   在第147行

我尝试过以下解决方案,但仍面临同样的问题:

hybridauth-php-facebook-returned-an-invalid-user-id

hybridauth-facebook-returned-an-invalid-user-id

laravel4-hybridauth-facebook-authentication-failed-facebook-returned-an-invalid

Github Solution

Google group Solution

请帮助,我们将不胜感激。

1 个答案:

答案 0 :(得分:0)

我不确定这是不是真的,但是在我能够让我的安装工作之后,无论我怎么努力,我都无法让Facebook工作。我的猜测是,Hybridauth用于Facebook的SDK文件已被弃用。 Facebook最近发布了新版本和相当重新设计的SDK。这可能就是为什么现在有很多人正在遭遇Facebook提供商的问题。