SocialAuth v4.0 Documentation

SocailAuth is a script that lets you authorize your sign-in with social newtorks like Facebook, Twitter, Linkedin, Google, Yahoo. It has also db integration to store social profiles for future use.

Thank you for purchasing my script. If you have any questions that are beyond the scope of this help file, please feel free to email via my user page contact form here. Thanks so much!


Author: Hüseyin BABAL
Contact: huseyinbabal88@gmail.com
Current Version: 4.0
Documentation Version 4.0
Created: 2011-12-24
Modified: 2014-02-25

SocialAuth scheme
SocialAuth Architecture

  1. When user clicks login login on the site, system handles login request and creates adapter by using parameters in url.
  2. System creates adapter according to configs that you provided and redirects you to social network. If permission required, social network opens popup to authorize.
  3. After successful authorization user redirected to your system. On this section, system has user social information. First, checks DB for existance. If not, user data will be saved into DB
  4. User redirected to callback page on your system. All the required session has written

Installation is the easiest part of the document. There is a GUI for installation, there is no boring config file anymore. For installation, you need to create app for each social network. You can find detailed documentations on right side. To install configs for your system, Put socialauth files to your web server root(www e.g.). And open

http://your.web.server/socialauth/installation/index.php

× Important! After installation, copy socialauth folder to your system, delete examples and installation folder

SocialAuth saves user data in to database by using config that you provided. You need to provide some basic DB informations. host,username,password. Full list of requirements exists in installation page. Please be sure you have running mysql database and required user password db

In order to use SocialAuth, you need to include two files: configs.php and Social_Auth.php After that, you need to create an adapter for specified network. Example;

                            <?php
                            $config = dirname(__FILE__) . '/config.php';
                            require_once( dirname(__FILE__) . '/Social/Auth.php' );
                            $adapter = $socialAuth->authenticate( "facebook" );
                            $userData = $adapter->getUserProfile();
                            ?>
                        


Once again, thank you so much for purchasing this theme. As I said at the beginning, I'd be glad to help you if you have any questions relating to this script. No guarantees, but I'll do my best to assist. If you have a more general question relating to the themes on Codecanyon, you might consider visiting the forums and asking your question in the "Item Discussion" section.