My company needs a script to allow users signup and login to our website using their account from:
Users can fill up our own Signup form or choose to use Facebook, Twitter, Google+ or Hotmail/Live data to signup to our site.
If so, at least the basic data from users (Id, First Name, Last Name, Gender, Email, Birthdate) must be placed to our database, with the source from their data (FB, TW, G+, HM), to allow us to identify where the users' data came from.
In the other hand, a user who is already signed must be allowed to just login, using their credentials from the same sources.
The script must validate if the user exists in our database. If so, it proceeds and go on. If not, asks for Signup.
Program must be write in PHP 5.0+JS. Database is MySQL.