Facebook Login - Anything
Before you start
Make sure you have:
- An Anything project with User Accounts turned on
- Your app running on a custom domain through Anything’s domain setup
Overview
Set Up Facebook App
Add keys to Anything
Add credentials to Anything
Add sign-in UI
Customize the login button
Test flow
Make sure login works
Facebook Setup
Access Facebook Developers
- Go to Facebook for Developers
- Sign in with your Facebook account
- Click “My Apps” in the top right
Create New App
- Click “Create App” from the dashboard
- You’ll be taken to the app creation screen
Configure App Details
- Enter your app name
- Add your contact email
- Click “Create App”
Choose an app name that clearly represents your business or service - this will be visible to users
Add Facebook Login
- On the product selection screen
- Find and select “Facebook Login”
- This will add the login capability to your app
Business Portfolio Setup
- Choose whether to add your app to a business portfolio
- You can skip this step for now during development
- You’ll need to complete this before launching
Complete Initial Setup
- Click “Go to Dashboard” to finalize the initial setup
- This will take you to your app’s main dashboard
Configure Email Permission (Optional)
- Navigate to App Settings > Permissions
- Add the email permission if you want to receive user email addresses
- This is optional but recommended if your app needs to email users
Access Settings
- In the left sidebar, click “Facebook Login > Settings”
- This is where you’ll configure the OAuth settings
Configure OAuth Redirect URI
- Under “Valid OAuth Redirect URIs”
- Add:
https://www.your-domain.com/api/auth/callback/facebook - Replace “your-domain.com” with your actual domain
Must include:
https://protocolwwwprefix in the domain- Exact domain used in Anything’s custom domain settings
- Valid CNAME record for
wwwsubdomain in DNS
Save OAuth Settings
Scroll to the bottom of the settings page
Click “Save Changes” to store your OAuth configuration
Go to Basic Settings
Navigate to Settings > Basic in the left sidebar
This section contains your app credentials and core settings
Copy App Credentials
Find your App ID
Click “Show” to reveal your App Secret
Save both values - you’ll need them for Anything setup
Keep your App Secret secure - never share it publicly
- Complete Basic Settings (Later) Before launching, you’ll need to complete these additional settings:
- Add your domain with
wwwprefix - Add Privacy Policy URL
- Add User Data Deletion Policy URL
- Add Terms of Service URL
You can use services like Termly to generate these required policy documents and then host them on pages in your Anything app.
Business Verification (Later) Required before launching your app:
Complete the business verification process
Provide required documentation
Wait for Facebook’s review
Publish Your Facebook App (Later) Final step before going live:
Navigate to the App Dashboard
Switch your app from Development to Live mode
Complete any remaining verification steps
Add to Anything project
Enable User Accounts You have two options:
- Prompt Anything with “Let users sign in”
- Enable User Accounts from the logo menu
Access Project Settings
- Click the 3-dot menu at the top of the chat
- Select “Project Settings”
Enable Facebook Login
- Navigate to the Authentication section
- Find Facebook Login toggle
- Turn it on
Add Facebook Credentials
- Paste in your App ID
- Paste in your App Secret
- Click Save
Add Sign In UI
- Return to the chat
- Prompt Anything with “Add Facebook Login as an option”
- Anything will update your sign-in pages automatically
Publish Your App
- Click the Publish button
- Review your changes
- Publish to make the Facebook Login feature live
Testing
- Publish your changes
- Open your app in a new incognito window
- Go to the sign in page
- Try signing in with Facebook
- Check the auth_users table to see your new user
Troubleshooting
Can't see the Facebook button
- Check if User Accounts is turned on
- Make sure Facebook Login is enabled in Project Settings
- Try publishing your changes again
- Clear your browser data and try in incognito mode
Login not working
- Double check your domain is exactly the same in Anything and Facebook
- Make sure your callback URL is right:
www.your-domain.com/api/auth/callback/facebook - Check if your App ID and Secret are pasted correctly
- Verify your domain is set up in Facebook
- Make sure your app is live at your custom domain
Users can't sign in after domain change
- Update the OAuth Redirect URIs in Facebook
- Update your App Domains in Facebook
- Re-publish your app on the new domain
FAQ
What user info do I get?
By default:
- Email address
- Name
- Profile picture (if they have one)
Additional information requires requesting extra permissions and may require Facebook app review.
Can I change how the login button looks?
Yes! Just:
- Go back to chat
- Tell Anything how you want it to look
- Anything will help style it while following Facebook’s rules
Do I need Facebook to review my app?
- For basic login: No
- For extra features: Yes
- You’ll need to submit your app to Facebook for approval.