Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript

Sing up with "insertsocialmediahere"

So after some searching on the web with no luck, I was wondering how the "sign up with Facebook" button, as well as the other social sign up buttons, worked. Would it be possible to make a button to use the credentials gathered from any site work in the same fashion? I'm still relatively new to Javascipt so I'm not 100% sure if java is the way to even go with this. Any kind of light shed on this subject would be amazing and much appreciated!

Thanks!

Blaize Pennington
Blaize Pennington
13,879 Points

I worked on a website using the signup with steam feature. It was an API that we used PHP to pull from. Basically when the user enters their account information they are giving information for steam to give us their info. So we had access to their name, username, e-mail, location, etc..

Cool, so basically you would use an API/PHP to pull that information from the where ever your database of info is, then auto complete the sign in form. Now that I am looking for some API sign up programs I am getting a lot more results. Thanks Blaize!

Blaize Pennington
Blaize Pennington
13,879 Points

The way we did it was pull all of their information into our database and then check for any missing information such as Location. If it was missing we would redirect them to a form where they could complete their profile. If everything was filled out we redirected them back to the home page signed in to their new account.