Facebook OAuth Setup

Prev Next

You can let users log in to your Rocket.Chat workspace with their Facebook credentials.

Prerequisites

Before you begin, make sure you have:

  • A Facebook developer account.

  • A Facebook app that has Facebook Login enabled.

  • In the app settings, under Valid OAuth Redirect URIs, add your Facebook Callback URL.

    • You can find this URL in your Rocket.Chat workspace under Administration > Workspace > Settings > OAuth.

  • Your Facebook App ID and App Secret.

    • To find these, go to your app in the Facebook Developer portal, then App Settings > Basic.

    • Copy the App ID and App Secret. You’ll need them to connect Facebook Login with Rocket.Chat.

Configure Facebook OAuth

Once you have your Facebook app set up and your App ID and Secret ready, you can configure Facebook OAuth in your Rocket.Chat workspace:

  1. In your Rocket.Chat workspace, go to: Administration > Workspace > Settings > OAuth and expand the Facebook section.

  2. Toggle Facebook Login to on.

  3. Enter your Facebook App ID and Facebook Secret.

  4. Verify that the Facebook Callback URL matches the one configured in your Facebook app.

  5. Click Save changes.

After saving, a Sign in with Facebook button will appear on your workspace login page. Users can now log in with their Facebook accounts.