Enable X/Twitter

Create a X/Twitter application

Subscribe to the Developer Platform (opens in a new tab). See this tutorial (opens in a new tab) for a better overview.

Create a new project and a sub application, with access to API v2 and OAuth. Read here (opens in a new tab) for more details.

If you go for the Free plan, remember that you (and all other enabled users in Reposter.app) can only publish 50 requests / 24 hours.

Once created the application, go to the "Settings" -> "User authentication settings" and edit the "User authentication set up":

Alt text

  • App permissions
    • Read and write
  • Type of App
    • Web App, Automated App or Bot
  • App info:

Alt text

Once created the application, go to the "Keys and tokens" -> "OAuth 2.0 Client ID and Client Secret" section and get:

  • Client ID and fill the X_OAUTH2_CLIENT_ID variable in the .env file
  • Client Secret and fill the X_OAUTH2_CLIENT_SECRET variable in the .env file

Alt text

At this point you have setup all necessary configuration to publish textual only posts.

Add support for image upload (Optional)

To enable image upload, you need to get also some additional keys.

From the Developer Portal (opens in a new tab), open your application and go to the "Keys and tokens" section.

From "Consumer Keys" section and get:

  • Key and fill the X_CONSUMER_KEY variable in the .env file
  • Secret and fill the X_CONSUMER_SECRET variable in the .env file

From "Authentication Tokens" -> "Access Token and Secret" section and get:

  • Key and fill the X_ACCESS_TOKEN variable in the .env file
  • Secret and fill the X_ACCESS_SECRET variable in the .env file