Go to developer.twitter.com/apps and sign in with a Twitter account.
1a. If you have not yet created a Twitter developer account, you will be asked to create one. Click the ‘Apply for a developer account’ button, follow the instructions for creating an account, and then click the link in the verification email you are sent. That brings you to a Welcome page where you can create a new app.
Click the Create New App button.
2a. Enter a name and description for your forum.
http://forum.example.comin the Website field obviously, replacing the domain with your site’s actual domain name and matching the correct protocol, HTTP or HTTPS.
http://forum.example.com/auth/twitter/callbackin the Callback URL field.
2d. Agree to the legal stuff and click the Create your Twitter application button.
In the Settings tab, enter
http://forum.example.com/tosin the Terms of Service URL field,
then check “Allow this application to be used to Sign in with Twitter”
Click Update Settings.
In the Permissions tab, choose “Read Only”, and “Request email addresses from users”, then click Update Settings.
Click on the Keys And Access Tokens tab.
Copy the API key and API secret and paste it in the
twitter_consumer_secretsettings in the Login section of your Discourse site (
Be sure to enable the site setting
enable twitter logins
The above steps also apply if you want to enable “rich embedding” of tweets with pictures and more. If you want rich embeds but don’t need Twitter login, simply uncheck
enable twitter logins and leave the consumer key and secret intact.