We are going to begin integration with social media by allowing users to create accounts and log in using their Facebook accounts. The first things we need to do are to set up a Facebook developer account and build a Facebook app.
In order to authenticate users using Facebook, you have to have a Facebook app. Fortunately, Facebook makes setting this up really easy.
If you do not have a Facebook developer account, head over to https://developers.facebook.com/ right now and sign up for a developer account. Just follow the instructions and agree to the terms of service. Next, we need to set up an app. From the developers' dashboard, select Add New App from the My Apps dropdown. You'll get a modal window that looks like the following screenshot:
Select Website:
Give your new app a name and select Create New Facebook App ID:
Choose a category for your new app (any one will do, really). Make sure to leave off the selection...