Here is a guide on how to set up OAuth with Facebook:
https://developers.facebook.com/docs/facebook-login/