For facebook login you need facebook app. Create your facebook app and take your application id. Now write following code in your aspx page.
Replace your app id in “your-app-id”. Add following code in your html.
Now you are ready with your code. Just run the code and when you will click on facebook login button you are redirected to facebook site and ask for login and authorization. Accept access for your login and you will redirected agin to your site. You will see user name and log out button.