Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 677 Bytes

README.md

File metadata and controls

30 lines (18 loc) · 677 Bytes

angular2-facebook-connect

angular2-facebook-connect: a really simple Angular2 module which handles the login with facebook

Exemple here: http://www.nicolas2bert.com/chat

Instalation

  1. Build and run a super-simple Angular 2 application in TypeScript. https://angular.io/docs/ts/latest/quickstart.html

  2. Download the angular2-facebook-connect package: download using the zip file

  • Add app.component.html, app.component.ts and facebook.service.ts in your app

  • Replace your-app-id with your facebook app id inside /facebook.service.ts

  FB.init({
    appId: "your-app-id",
    xfbml: true,
    version: 'v2.5'
  });

  1. Enjoy your login Facebook