[Drupal 6] How to automatically post content in your Drupal 6 site directly to Twitter without any coding?

| | 2 min read

One of our Drupal 6 clients wanted us to implement a feature where nodes belonging to a particular content type where to to be posted to their official twitter feed as soon as they were published. We had done a feature on How to automattically tweet published content on twitter from a Drupal 7 site. Read on to know how to do it in Drupal 6.

To make this work you need the following Drupal modules

  • Twitter module
  • Oauth module
  • Rules module

Enabled the Twitter module on your site followed by the Oauth module and the Rules module.Now we need to authorize the twitter module to post on our behalf to the twitter feed. Go to

admin/settings/twitter/settings

The steps to get the app authorized are provided on the page itself. Basically you need to get the

1. OAuth Consumer key:
2.OAuth Consumer secret:

You need to be logged into the account to do this.Once you are done authorizing the app, save the configuration. Next go to

admin/settings/twitter

and then click on

 Go to twitter to add an authenticated account

and then save the changes. Thats it with the twitter account setup. Now to make sure the tweets are posted to that account go to

admin/rules/trigger/list/add

Now create an appropriate label, and then set the event as

After saving a new content

Next we need to add the rules when the event is triggered. The rest of the steps are pretty straightforward.We have used the following set of rules

Condition 1. Content is published
Condition 1. Content is of type MY_TYPE
Action 1. Post to Twitter 

Thats all there is to it. Modify the above steps to match the needs of your site

If you have any doubts regarding this article or any other article, feel free to get in touch with us.