Ionic native Facebook with Firebase

I am trying to implement a Facebook Login within my Ionic 2 App.
I can successfully login with Facebook, but I am not able to generate the credentials, because I get this error:

ReferenceError: firebase is not defined
at main.js:37869
at t.invoke (polyfills.js:3)
at Object.onInvoke (main.js:35516)
at t.invoke (polyfills.js:3)
at (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (main.js:35507)
at t.invokeTask (polyfills.js:3)
at e.runTask (polyfills.js:3)

I tried implementing Firebase on top of my file with these comands:
import firebase from “firebase”;
import * as firebase from “firebase”;

But with this commands I cannot even compile my application.

This is my code:

  const firebaseCredential = firebase.auth.FacebookAuthProvider.credential(response.authResponse.accessToken);
  let providerConfig = {

Thank you for your help!

full example in the doc…

here is a project -

Unfortunately this didn’t solve the problem.
I followed the instructions, but it keeps telling me that firebase is not defined.
Do you know how I can fix this issue?

I posted the link to my project that works. Without seeing more of your source code, it is difficult to do anything else

Are this all the necessary files?!aIEXya7C!b5fxfSIIhdP0H06etaeRKA
Thank you for your help!