I downloaded the codeigniter extension of HybridAuth here:
https://github.com/andacata/HybridIgniter
I followed instructions on its use. When I try to login via any provider at: www.mydomainname.com/hauth/login/twitter
it loads a page saying:
HybridAuth
Open Source Social Sign On PHP Library.
hybridauth.sourceforge.net/
It never works. I have valid API credentials for Twitter and Facebook but both load this page and nothing else happens. Any tips would be greatly appreciated.
UPDATE
My log says:
Hybrid_Provider_Adapter::login( facebook ), redirect the user to login_start URL. -- Array
(
[hauth_return_to] => http://www.sitename.com/hauth/login/facebook
[hauth_token] => 6vjglu8usmsjqsi74cku8o85j3
[hauth_time] => 1335997302
[login_start] => http://sitename.com/hauth/endpoint?hauth.start=facebook&hauth.time=1335997302
[login_done] => http://sitename.com/hauth/endpoint?hauth.done=facebook
)
INFO -- 127.0.0.1 -- 2012-05-03T00:21:42+02:00 -- Enter Hybrid_Auth::redirect( http://sitename.com/hauth/endpoint?hauth.start=facebook&hauth.time=1335997302, PHP )
UPDATE
Here is a link to the controller
https://github.com/andacata/HybridIgniter/blob/master/application/controllers/hauth.php
the above answer didn't help much to me but i figured out the problem.
Add index.php
to base_url
in config/hybridauthlib.php
'base_url' => '/index.php/hauth/endpoint',
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With