Facebook Social Login
Supported Platforms
You can allow your users to sign up & log in to your web app with their Facebook account.
Style your Facebook button however youโd like!
๐ Play with a demo
Prerequisites
- You will need a Facebook Developer account
- You will need to have the Magic SDK installed into your web app
- You will need to have the Magic SDK - OAuth Extension installed into your web app
Facebook Setup
After installing the OAuth extension, you can now enable Facebook Login for your Magic app:
Follow Facebook's instructions to register a Facebook app
When creating your Facebook app, select "For Everything Else" to include Facebook Login
- On the next screen, you'll be presented with different products you can integrate into your Facebook app. Click "Set Up" in the card representing the Facebook Login capability.
- Skip the "Quick Start" flow and go directly to Settings > Basic
- Obtain the "App ID" and "App Secret"
Go to your Magic Dashboard
Select the Magic app for which youโd like to enable Facebook Login, or create a new app
Navigate to Social Login from the sidebar
Click the toggle for Facebook
Input the App ID and App Secret for your Facebook app
Copy the Redirect URI field from your Magic Dashboard
Return to your Facebook Dashboard and go to Facebook Login > Settings
- Paste the Redirect URI you obtained from your Magic Dashboard into the "Valid OAuth Redirect URIs" field
- In Magic Dashboard, click โSaveโ โ Done! ๐