Skip to main content

Send notifications to Twitter

This guide explains how to send the notifications of Casdoor to a Twitter (X) user.


Learning outcomes​

  • Get the credentials of a Twitter app and the ID of the recipient.
  • Add Twitter as a notification provider in Casdoor.

What you need​


Get the credentials​

  1. Create a Twitter app and copy the API key, the API secret, the access token, and the access token secret. See API key and secret.

    Credentials of the Twitter app

  2. Find the numeric user ID of the recipient. Twitter doesn't show it in its UI. Use a lookup service such as TweeterID.

Add the provider in Casdoor​

  1. In the Casdoor admin console, go to Identity > Providers and add a provider.

  2. Set Category to Notification and Type to Twitter.

  3. Fill in the fields:

    CasdoorTwitter
    Client IDAPI Key
    Client secretAPI Secret
    Client ID 2Access Token
    Client secret 2Access Token Secret
    Chat IDTwitter ID

    Twitter notification provider in Casdoor

  4. Click Send Testing Notification, and save the provider.

See also​