In this tutorial I will explain you how to do Multiple social login using Facebook, twitter, yahoo, gmail in codeigniter Now a day most of the user do not like to do registration. So you can verify the user simply by using social login through Facebook, twitter, yahoo, gmail etc. Social login using codeigniter is very easy you just need to do some simple task. First download the file from GitHub link this.
Now Extract the file and open it
Now open Social-CodeIgniter-for-CodeIgniter3.0.1 and you will see the application folder.
Now download the codeigniter from link
Extract the file and place in the local host and rename with name login. Open the folder and your folder structure will look like this
Now delete the application folder from this folder. Don’t get confused we will copy the application folder in place of this folder from the file we have downloaded from GitHub.
Copy this folder in the codeigniter folder in place of the application folder you have deleted.
Now open the file route.php inside the config folder and replace
$route['default_controller'] = 'Welcome';
$route['default_controller'] = 'hauth';
Now run the url http://localhost/login/
Now create the application on Facebook developer page and activate the application. After creating the application your application will look like this. Follow the instruction marked in red. As you are testing on local host App Domains and Site URL must be local host.
Now open the config folder and and look for the file name hybridauthlib.php Open this file and copy and paste the Facebook App ID and App Secret in the file
Now you can do login using Facebook into your website. Hope this tutorial Multiple social login using Facebook, twitter, yahoo, gmail in codeigniter will help you. You can create the API for the rest social login and place the App ID and App Secret in the hybridauthlib.php.