Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add Social login services from Google, Facebook, Yahoo etc. to my website?

I want to add the following buttons to my website for providing users with option to login using more services like Google, Facebook etc.

Login Options

Please answer the following questions:

  1. How can I add various services like this free of cost? (Please note that I do not want to use any paid service like Janrain and )
  2. How can I store user information of the user (like email, phone no.) that are stored in the accounts to my database?
  3. Please provide any links/libraries that can be used.

I appreciate any other information that you can provide.

Thank you!

like image 515
sumit Avatar asked Jun 04 '11 08:06

sumit


People also ask

Can I join Facebook through Google?

Select “Google” from the pull down menu and you'll be asked to allow Facebook and Google to interact. Once you've authorized the connection your two accounts are linked!


1 Answers

You'll be using the APIs of the respective services (Google, Facebook, Twitter) or may be OpenID if you plan to add that as well. Some links:

http://code.google.com/apis/accounts/docs/OpenID.html

https://developers.facebook.com/docs/authentication/

http://dev.twitter.com/pages/auth

http://openid.net/add-openid/

Also take a look here. There are several similar questions already present on SO, check the related questions on the right.

like image 196
Atul Goyal Avatar answered Oct 05 '22 22:10

Atul Goyal