Facebook SSO Integration Guide
Welcome to the Facebook SSO Integration Guide. This document provides step-by-step instructions for integrating Facebook Login into your application, enabling users to authenticate with their Facebook credentials. This integration supports both web and mobile platforms (iOS and Android).
Prerequisites:
Before you begin, ensure you have the following:
A registered Facebook Developer account.
An app created in the Facebook Developer Console.
Access to your application’s codebase (web or mobile).
Your application’s redirect URLs (for web) or package names and key hashes (for mobile).
Step 1: Create a Facebook App
Log in to Facebook for Developers: Go to developers.facebook.com and log in with your Facebook account.
Create a New App:
Click on “My Apps” in the top-right corner.
Select “Create App”.
Choose “Consumer” as the app type and click “Next”.
Enter your App Name and Contact Email.
Click “Create App” and complete any security checks.
Step 2: Configure Your Facebook App
Obtain App ID and App Secret
In “Settings” > “Basic”, you will find your App ID and App Secret.
Important: Keep your App Secret confidential.
Whitelist Your SSO Domain a. In your Facebook Developer Console, ensure your application’s domain is whitelisted: b. Go to “Settings” > “Basic”. c. Add your SSO domain(s) in the “App Domains” field. d. Ensure that your Bundle Identifier (iOS) and Package Name (Android) are correctly set for mobile apps.
Step 3: Turn On Live Mode
a. By default, If your app is in Development Mode and only accessible to admins, developers, and testers.
b. To make your app available to all Facebook users:
c. Go to the top bar of the dashboard.
d. Toggle the switch from “In Development” to “Live”.
Note: You may need to provide a privacy policy URL and adhere to Facebook’s platform policies.
Conclusion
By following this guide, you can integrate Facebook SSO into your application successfully. This will enhance user experience by providing a quick and secure login method.
Last updated