Back to home

FacebookModule (class exported as FacebookModule)

The main module to import into your application. You only need to import this module if you wish to use the components in this library; otherwise, you could just import FacebookService into your module instead. This module will make all components and providers available in your application.

link Usage

In order to use this library, you need to import FacebookModule into your app's main NgModule.

import { FacebookModule } from 'ngx-facebook-sdk';

@NgModule({
  ...
  imports: [
    ...
    FacebookModule.forRoot()
  ],
  ...
})
export class AppModule { }