Skip to content

X / Twitter

The X / Twitter integration posts tweets from your WordPress site whenever there’s activity on it: share each new blog post, or post a link or photo when an admin or a user does something specific on your site. Once connected, the Post a tweet to X/Twitter action appears under X/Twitter in the recipe builder. This article covers the two ways to connect, adding the action to a recipe, and setting up your own X app.

If you have Uncanny Automator Lite, you’ll first need to connect your site to a free Uncanny Automator account, which gives you app credits to use with X / Twitter. On a paid plan, app integrations are included.

Important: Because of X’s API pricing, posting through the Uncanny Automator app (Quick connect) is limited to 5 tweets per license per day, and posting through your own X app (Custom app) to 100 tweets per license per day. The settings page shows each limit beside its connection method.

Connect X / Twitter

  1. In your WordPress dashboard, go to Automator > Settings > App integrations and select X/Twitter in the list.
  2. Under Connection method, leave Quick connect selected. It is selected until you change it and connects your X account through the Uncanny Automator app. If you need more than 5 tweets a day, choose Custom app instead and follow Use your own X / Twitter app below.
  3. Click Connect X/Twitter account.

The X/Twitter panel under Automator Settings App integrations with Quick connect (5 tweets a day) selected and Custom app (100 tweets a day) under Connection method, and the Connect X/Twitter account button

  1. Sign in to your X account if asked, then click Authorize App to let Uncanny Automator post to your profile.
  2. You return to the settings page, which confirms “You have successfully connected your X/Twitter account.”

Until an account is connected, the recipe builder’s picker hides X/Twitter while its Ready-to-use only switch is on; see Finding integrations in the recipe builder.

Post a tweet from a recipe

  1. Open the recipe at Automator > Recipes, or create one from Automator > Add new recipe, and add its trigger; see Creating a recipe.
  2. Click the + at the end of the flow. In the picker, search for Twitter, select X/Twitter, and choose Post a tweet to X/Twitter.
  3. In the Set up step, write the tweet in Status. Insert tokens with the ∗ button at the end of the field (the post title and URL, a course name, a form answer) so each tweet carries the data from the event that fired. Tweets are limited to 280 characters, including the values the tokens turn into.
  4. To attach a photo, enter its URL or media library ID in Image URL or Media library ID, or insert an image token. JPG, PNG, GIF, and WEBP images up to 5 MB are supported. Leave the field empty for a text-only tweet.

The Set up step of Post a tweet to X/Twitter with the Post title and Post URL tokens in Status and the Post featured image URL token in Image URL or Media library ID

  1. Click Save.

Make sure the action is On, then switch Recipe on in the top bar. The action returns a Link to Tweet token that later actions can use, for example to post the link in Slack or save it to the post.

Use your own X / Twitter app

Quick connect is the most convenient way to connect, but X’s API costs keep its posting limit low. For heavier posting, connect with your own X developer app instead. The connection method can be chosen only while X/Twitter is disconnected, so if you connected with Quick connect, click Disconnect on the settings page first.

  1. In the X Developer Console, create an app. Any app works; you don’t need a special app type or access level.
  2. Open the app’s user authentication settings and set the app permissions to Read and write. The default is read-only, which cannot post.

The X developer portal app settings, showing where to open the user authentication settings

  1. Set up the authentication settings as shown below, then save them.

The X developer portal user authentication settings with read and write app permissions selected

  1. Copy the app’s API key, API key secret, access token, and access token secret from the Developer Console.
  2. In WordPress, go to Automator > Settings > App integrations > X/Twitter and select Custom app under Connection method.
  3. Paste the four values into API key, API key secret, Access token, and Access token secret, then click Connect X/Twitter account.

The X/Twitter panel with Custom app selected, the setup instructions, and the API key, API key secret, Access token, and Access token secret fields filled with placeholder values above the Connect X/Twitter account button

Related: Finding integrations in the recipe builder, Managing actions, Managing tokens

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top