There are two steps, the first step is to register a facebook application, after you register you will have a key and password. The next step will be to insert these into you application.
Step 1.
Enable OAuth login using Facebook, Twitter
Steps to get keys for Facebook
That’s it, you can no log in with facebook, see the placeholder template below.