Uncaught Exception thrown when FB Oauth attempts callbacks to socialauthsignin.php
Upon configuring a Facebook app to use web login for Oauth to my Hubzilla instance, I was able to log into facebook and was met w/ a 500 Response from the instance. Below are some lines I was able to pull from an error log:
PHP Fatal error: Uncaught Error: Call to undefined method Hybridauth\Hybridauth::getHttpClient() in /home/scoonsol/public_html/hubzilla-dev/extend/addon/hzaddons/socialauth/Mod_SocialAuth.php:107
Stack trace:
#0 /home/scoonsol/public_html/hubzilla-dev/Zotlabs/Web/Router.php(288): Zotlabs\Module\SocialAuthSignin->get()
#1 /home/scoonsol/public_html/hubzilla-dev/Zotlabs/Web/WebServer.php(108): Zotlabs\Web\Router->Dispatch()
#2 /home/scoonsol/public_html/hubzilla-dev/index.php(14): Zotlabs\Web\WebServer->run()
#3 {main}
thrown in /home/scoonsol/public_html/hubzilla-dev/extend/addon/hzaddons/socialauth/Mod_SocialAuth.php on line 107
Here are steps to reproduce the behavior:
- Create a facebook application
- Configure the redirect URI in your FB app settings in the developer portal
- Install the Socialauth Hubzilla addon
- Enable and configure the Socialauth addon with the following:
- Provider: Facebook
- Key: Your Application ID in the FB dev portal
- Secret: Provided by FB
- Submit the new configuration
- Either:
- Log out and log back in via the "Sign in with Facebook"
- Sign in another account with Facebook
- Take note of the redirect and server response in either the browser or logs