Facebook Login - Anything

Before you start

Make sure you have:

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

  1. Access Facebook Developers

    1. Go to Facebook for Developers
    2. Sign in with your Facebook account
    3. Click “My Apps” in the top right
  2. Create New App

    1. Click “Create App” from the dashboard
    2. You’ll be taken to the app creation screen
  3. Configure App Details

    1. Enter your app name
    2. Add your contact email
    3. Click “Create App”

Choose an app name that clearly represents your business or service - this will be visible to users

  1. Add Facebook Login

    1. On the product selection screen
    2. Find and select “Facebook Login”
    3. This will add the login capability to your app
  2. Business Portfolio Setup

    1. Choose whether to add your app to a business portfolio
    2. You can skip this step for now during development
    3. You’ll need to complete this before launching
  3. Complete Initial Setup

    1. Click “Go to Dashboard” to finalize the initial setup
    2. This will take you to your app’s main dashboard
  4. Configure Email Permission (Optional)

    1. Navigate to App Settings > Permissions
    2. Add the email permission if you want to receive user email addresses
    3. This is optional but recommended if your app needs to email users
  5. Access Settings

    1. In the left sidebar, click “Facebook Login > Settings”
    2. This is where you’ll configure the OAuth settings
  6. Configure OAuth Redirect URI

    1. Under “Valid OAuth Redirect URIs”
    2. Add: https://www.your-domain.com/api/auth/callback/facebook
    3. Replace “your-domain.com” with your actual domain

Must include:

  1. Save OAuth Settings

  2. Scroll to the bottom of the settings page

  3. Click “Save Changes” to store your OAuth configuration

  4. Go to Basic Settings

  5. Navigate to Settings > Basic in the left sidebar

  6. This section contains your app credentials and core settings

  7. Copy App Credentials

  8. Find your App ID

  9. Click “Show” to reveal your App Secret

  10. Save both values - you’ll need them for Anything setup

Keep your App Secret secure - never share it publicly

  1. Complete Basic Settings (Later) Before launching, you’ll need to complete these additional settings:
  2. Add your domain with www prefix
  3. Add Privacy Policy URL
  4. Add User Data Deletion Policy URL
  5. 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.

  1. Business Verification (Later) Required before launching your app:

  2. Complete the business verification process

  3. Provide required documentation

  4. Wait for Facebook’s review

  5. Publish Your Facebook App (Later) Final step before going live:

  6. Navigate to the App Dashboard

  7. Switch your app from Development to Live mode

  8. Complete any remaining verification steps

Add to Anything project

  1. Enable User Accounts You have two options:

    1. Prompt Anything with “Let users sign in”
    2. Enable User Accounts from the logo menu
  2. Access Project Settings

    1. Click the 3-dot menu at the top of the chat
    2. Select “Project Settings”
  3. Enable Facebook Login

    1. Navigate to the Authentication section
    2. Find Facebook Login toggle
    3. Turn it on
  4. Add Facebook Credentials

    1. Paste in your App ID
    2. Paste in your App Secret
    3. Click Save
  5. Add Sign In UI

    1. Return to the chat
    2. Prompt Anything with “Add Facebook Login as an option”
    3. Anything will update your sign-in pages automatically
  6. Publish Your App

    1. Click the Publish button
    2. Review your changes
    3. Publish to make the Facebook Login feature live

Testing

  1. Publish your changes
  2. Open your app in a new incognito window
  3. Go to the sign in page
  4. Try signing in with Facebook
  5. Check the auth_users table to see your new user

Troubleshooting

Can't see the Facebook button

Login not working

Users can't sign in after domain change

FAQ

What user info do I get?

By default:

Additional information requires requesting extra permissions and may require Facebook app review.

Can I change how the login button looks?

Yes! Just:

  1. Go back to chat
  2. Tell Anything how you want it to look
  3. Anything will help style it while following Facebook’s rules

Do I need Facebook to review my app?