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

PHP

Login with Facebook along with MySQL connectivity

Hi there,

I want to create an app where users can signup using the register plugin of Facebook and while the user successfully signs up, his name, email id and other details gets stored into MySQL.

How should I proceed for it?

Thanks in advance.

3 Answers

If I understand what you want to do correctly, you would call Facebook's API (see https://developers.facebook.com/docs/plugins/registration/) then your app would have a SQL insert statement that inserts the user's name, email id and other details into your own MYSQL database.

Hi Rick, Thanks for the response.

I've done the half way work, i.e called the facebook API using the iframe version but how should I proceed further for using the SQL insert statement?