Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: HeCAPTe 1.0.2 — Minor update available for module hecapte_captcha (1.0.2). Release: Attribution & Licensing 1.2.1 — Minor update available for module attribution (1.2.1). Release: MCP Sentinel 2.29.0 — Minor update available for module mcp_sentinel (2.29.0). Release: Audit Chain 1.10.9 — Minor update available for module audit_chain (1.10.9). Release: Menu Autopilot 1.4.7 — Minor update available for module menu_autopilot (1.4.7). Release: FileGate 1.11.3 — Minor update available for module file_gate (1.11.3). Release: Download Tracker 1.0.7 — Minor update available for module download_tracker (1.0.7). Release: Directory2Block Slideshow 1.0.8 — Minor update available for module directory2block_slideshow (1.0.8). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Social Post X

No security coverage

Part of the Social ecosystem · 37 projects

View on drupal.org

Social Post X allows you to configure your site to automatically tweet to a user account without human intervention.

Social Post X also integrates with the Rules module.

Requirements

  1. drupal/social_post: ^3.0 (that is itself dependent on drupal/social_api: ^3).
  2. abraham/twitteroauth

Update May 2026

As of May 2026, X has moved their API to a pay-per-post model. More information on this here: https://devcommunity.x.com/t/announcing-the-launch-of-x-api-pay-per-use-... . This means the end of free requests when new accounts start to use the API. Although this privilege should remain for existing free tier users, there has been a shift towards encouraging more human interaction on X to the detriment of automated content creation using the API. There have been other changes such as charging to post urls AFAICT. See attached screenshots.

So although this module should still work, you will probably need to pay for the privilege of using it and getting it working.

Post-Installation

First install and configure this module from /admin/config/social-api/social-post/x

Here you will need to enter the following credentials:

- X Consumer Key (API Key)
- X Consumer Secret (API Secret)
- X OAuth Token (Access Token)
- X OAuth Token Secret (Access Token Secret)

Rules Configuration

Navigate to Configuration > Rules (/admin/config/workflow/rules) and click "Add reaction rule".
Select a React on event value (e.g. "After saving a new content node").
Set a Label for the rule (e.g. "New content node tweet").
Click "Save".
On the rule edit page, click "Add action".
Select the "X Tweet" action under the "Social Post" option group in the Action
field.
Click "Continue".
Input the text to be tweeted -- e.g. A new article "{{ node.title.value }}" has
been published on my website at {{ node | entity_url }}
Click "Save".
Add other conditions and/or actions as desired.
Click "Save".

Similar projects

This module is based on the contributed social_post_twitter module. That module allows multiple Drupal users to log in to a single Drupal instance and link their respective X accounts, allowing them to post new tweets from a single Drupal instance linked to their unique twitter/x handle. This module only enables a single Drupal user (admin) to link their X account and to post content streams under a single account. Also at the time of writing there were some issues with using that module with a basic X tier account. At the time of writing up to 1500 posts can be generated on a basic account tier.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Oct 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.0 Stable Jun 18, 2024
1.0.x-dev Dev Oct 24, 2023