Angular 2 Facebook SDK

This is a wrapper for the official Facebook JavaScript SDK. It makes it easier to use Facebook SDK with Angular 2 by providing components, providers and types.

link Installation Install via NPM
  
    npm i --save ngx-facebook
  
  

Add the Facebook JavaScript SDK to your index.html

  
    <script type="text/javascript" src="https://connect.facebook.net/en_US/sdk.js"></script>
  
  
link Documentation
FacebookModule
class

The module to import to add this library

FacebookModule
class

The module to import to add this library

FacebookService
class

Angular 2 service to inject to use Facebook's SDK

FacebookService
class

Angular 2 service to inject to use Facebook's SDK

Comments
class

Comments component

Comments
class

Comments component

Embedded Comments
class

Embedded comments component

Embedded Comments
class

Embedded comments component

Embedded Posts
class

Embedded post component

Embedded Posts
class

Embedded post component

Embedded Video
class

Component to embed Facebook videos

Embedded Video
class

Component to embed Facebook videos

Follow Button
class

Follow button component

Follow Button
class

Follow button component

Like Button
class

Like button component

Like Button
class

Like button component

Page Plugin
class

Page plugin component

Page Plugin
class

Page plugin component

Quote Plugin
class

Quote plugin component

Quote Plugin
class

Quote plugin component

Save Button
class

Save button component.

Save Button
class

Save button component.

Send Button
class

Send button component

Send Button
class

Send button component

Share Button
class

Share button component

Share Button
class

Share button component

AuthResponse
interface

AuthResponse
interface

FeedDialogParams
interface

FeedDialogResponse
interface

InitParams
interface

InitParams
interface

LeadFormBuilderDialogParams
interface

LoginOptions
interface

LoginOptions
interface

LoginResponse
interface

LoginResponse
interface

LoginStatus
interface

LoginStatus
interface

SendDialogParams
interface

ShareDialogParams
interface

ShareDialogResponse
interface

UIParams
interface

UIParams
interface

UIResponse
interface

UIResponse
interface