Integrate Facebook & Google SDKs
This section provides detailed steps for integrating Google and Facebook login functionality into your application using the Google SDK and Facebook SDK. This guide will walk you through the process of incorporating authentication via Google and Facebook, enabling users to seamlessly log in using their existing accounts. The integration covers both the setup of the respective SDKs and the necessary configuration steps for a smooth login experience.
Prerequisites
Before you proceed with integrating Google and Facebook login using the Google SDK and Facebook SDK, make sure to complete the integration steps from the OTPless Android Headless SDK Documentation.
The supported version for the OTPless SDK is 2.5.5. This version is essential to ensure compatibility with the login integrations.
Once you’ve completed the integration from the link above, you can continue with the following steps to incorporate Google and Facebook login into your app.
Choose your platform type to initiate login:
Request
To initiate an google login, set the channel type as GOOGLE_SDK
.
Note: Provide Google Client ID
For proper functioning of Google login in your application, you need to provide the ClientId
and Client Secret
of the credentials created on the Google Cloud Console.
Please ensure that the ClientId
and Client Secret
associated with your application is provided to OTPless for seamless integration and authentication functionality. This is crucial for the authentication process to work correctly.
Was this page helpful?