import {AuthMethods, AuthProviders, AngularFire, FirebaseAuthState} from "angularfire2";
import {AuthMethod} from "./auth-method";
import {Injectable} from "@angular/core";
@Injectable()
export class FacebookAuth implements AuthMethod{

  name: string = 'Facebook';

  constructor(private firebase: AngularFire){
  }

  login(){
    return this.firebase.auth.login({
      provider: AuthProviders.Facebook,
      method: AuthMethods.Popup
    });
  }
}
