Allow Sign in to My Website through Facebook Account and Fetch User Details

I am newbie to PHP Web Development - I am working on my own project to enhance my PHP programming skills.

Problems: Looking for an Idea, Suggestions, Free Script, or Article

How can I allow to sign in to my website with their Facebook account and fetch their Facebook profile details which is stored in my database?

https://developers.facebook.com/docs/facebook-login/getting-started-web/