Create Firebase Project

Enable Facebook as a Sign in provider in Firebase Console > Authentication > Sign in Method tab. You'll need to provide your Facebook app's credentials. If you haven't yet you'll need to have created a Facebook app on Facebook for Developers

Now navigate to the Overview on the top left and click Add Firebase to your web app to get the initialization snippet to copy. The snippet will look like this: