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
here is my code which work 100% :
i hope that you can find it useful.
am using the ion_auth for the main login system.
the auth_model is a small model which check if the user has enabled this provider with name or not, since i want the user to have the same data even if he use another social network to login with ..