Authenticate Using Facebook Login with JavaScript | Firebase
Create an instance of the Facebook provider object: Web v8 ... Optional: Specify
additional OAuth 2.0 scopes that you want to request from the authentication
provider. ... either by opening a pop-up window or by redirecting to the sign-in
page.