Angular 13 Facebook Login SDK Project to Display User Profile Using angularx-social-login Library in TypeScript



ng new angularsocialproject



cd angularsocialproject



npm i angularx-social-login



Now you need to go to app.module.ts file and copy paste the below code to include the required libraries








In the above code you need to replace your facebook app id which you can create as shown below







And now inside the app.component.html file copy paste the below html template code





And now inside the app.component.ts file you need to copy paste the below code





And now if you run the angular app you will see the below result







Leave a Reply