Skip to main content
LibreChat is joining ClickHouse to power the open-source Agentic Data Stack 🎉 Learn more
LibreChat

Facebook

Leer hoe je LibreChat configureert om Facebook te gebruiken voor gebruikersauthenticatie.

⚠️ Waarschuwing: Werk in uitvoering, momenteel niet functioneel

❗ Let op: Facebook-authenticatie werkt niet vanaf localhost

Een Facebook-applicatie aanmaken

image

  • Maak een nieuwe applicatie

image

  • Selecteer "Authenticate and request data from users with Facebook Login"

image

  • Kies "No, I'm not creating a game"

image

  • Geef een app name en App contact email op en klik op Create app

image

Facebook Applicatieconfiguratie

  • Selecteer in het zijmenu "Use cases" en klik op "Customize" onder "Authentication and account creation."

image

  • Voeg de email permission toe

image

  • Klik nu op Go to settings

image

  • Zorg ervoor dat Client OAuth login, Web OAuth login en Enforce HTTPS zijn ingeschakeld.

image

  • Voeg een Valid OAuth Redirect URIs toe en "Save changes"
    • Voorbeeld voor een domein: https://example.com/oauth/facebook/callback

image

  • Klik op Go back en selecteer Basic in het tabblad App settings

image

  • Klik op "Show" naast de App secret.

image

.env Configuratie

  • Kopieer de App ID en App Secret en plak ze als volgt in het .env bestand:
DOMAIN_CLIENT=https://your-domain.com # use http://localhost:3080 if not using a custom domain
DOMAIN_SERVER=https://your-domain.com # use http://localhost:3080 if not using a custom domain

FACEBOOK_CLIENT_ID=your_app_id
FACEBOOK_CLIENT_SECRET=your_app_secret
FACEBOOK_CALLBACK_URL=/oauth/facebook/callback
  • Sla het .env bestand op.

Let op: Als je Docker gebruikt, voer dan docker compose up -d uit om de wijzigingen in de .env configuratie toe te passen.

Hoe is deze gids?