![]() Many of the steps for configuring the project to support Facebook authentication are the same as those outlined in the chapter entitled Facebook Login Authentication using FirebaseUI Auth. On a successful Facebook sign-in, the appropriate callback method is called and passed a LoginResult object containing the user’s access token which is then used to register the user in Firebase.įirebase and Facebook Console Configuration ![]() Callbacks are then registered on the LoginButton instance which are called by the Facebook SDK to notify the app of the status of Facebook sign-in requests. This class provides a button for inclusion within a user interface which, when appropriately configured, serves the dual role of being both the login and logout button. ![]() ![]() The cornerstone to performing the Facebook phase of the authentication is the LoginButton class. The Firebase credential is then used to sign into a Firebase authentication user account (including the creation of a new account if one does not already exit). This access token is then used to create a Firebase authentication credential. Implementing Firebase authentication using both the Firebase and Facebook SDKs is a multistep process which can be broken down into a sequence of steps involving a number of different classes.Īs with the Google authentication process outlined in the previous chapter, this form of authentication requires that the user first sign into a valid Facebook account in order to receive an access token from the Facebook SDK. Authentication with the Firebase and Facebook SDKs
0 Comments
Leave a Reply. |