Incorporating Twitter Into Your Drupal Website

With so many people activity using Twitter on a daily basis, it has become fairly standard to incorporate Twitter into your website and vise-versa. It seems that many Internet users have come to expect a “follow me on Twitter” link displayed prominently on websites. Interacting with your prospective customers and website visitors through Twitter can be a great way to gain additional exposure for your brand as well as drive targeted traffic back to your website. Drupal is one example of a content management system that makes it extremely easy to incorporate Twitter into your website as well as send information from your site back to Twitter. The following are some free tools, modules, and recourses to help Twitter Icon Setsyou integrate Twitter with Drupal.

Follow Me On Twitter Icon – The first, and most basic, step is to add a follow me on twitter icon/link onto your website. I would suggest adding this icon to your site template or in a sidebar block so that it is displayed on all of your primary pages. Here are 100 free Twitter icon sets that can be placed on your site. Also be sure to add a link back to your website on your Twitter profile.

Twitter retweet buttonRetweet Button – With many sites having a blog as the focal point of their website, you should make it very easy for your readers to retweet your blog posts. The best way to do this is to add the ever so popular TweetMeme button to your posts. For Drupal, there is a TweetMeme module that can be easily installed with the click of a button. You now have the option to display the button on blog entries, content pages, etc. An alternative to using this module, maybe if you only want to include the button on a few of your posts rather than all posts, is to add the Javascript code directly into the body of your blog post.

Post to Twitter Options – There are a few other options for your Drupal site that allow visitors to share your content on Twitter. Maybe you prefer not to use the Retweet button mentioned above or would simply like to give your users additional options for sharing your content on Twitter.

  • Tweet Module – This module very simply adds a small “Post to Twitter” link and logo that can be displayed in the link section under each of your blogposts.
  • Add to Any Drupal ModuleService Links – Another Drupal module which gives you the option to display a number of social media links under your blog posts. This module allows users to share, save, and bookmark your post with their favorite social sites including Twitter, Facebook, Digg, Stumbleupon, and many other services. You can also customize these icons using a social icon set of your choice.
  • Add to Any – This is another great module that allows users to do just about anything they want to with your post. In addition to posting to Twitter, users can submit your post to over 100 different social bookmarking websites. They also have the option to email the post to friends or even bookmark the post directly in their web browser.

Send Your Blog Posts to Twitter – While there are many options that allow you to automatically post your recent blog entries to Twitter, Twitterfeed.com is probably my favorite. Simply add your RSS feed to Twitterfeed and it will automatically post your latest blog entries right to your Twitter account.

If you are looking to share your posts with more social networking sites other than just Twitter, I would recommend using a combination of both Twitterfeed and Ping.fm. To set this up, simply select the option on Twitterfeed to post your feed to Ping. You can then connect Ping with Twitter, Facebook, Delicious, and your other social networks. Once this is setup correctly, every time you update your blog with fresh content it will automatically post to all of your social networks.

Drupal Twitter Module - Lastest Tweets BlockTwitter Module – The Twitter module is another very powerful addition to Drupal that can perform a number of different tasks. Most commonly, it is used for adding a block to your Drupal site that displays your most recent Tweets. Here is a very good video tutorial on how to install this module and configure it to work with your site. In addition to this very basic task, the Twitter module is also setup for multi user websites. Multi user sites can give people the option to link their Twitter profiles to their Drupal user profile and display recent tweets or even post content they create directly to a Twitter account.

Chat CatcherChat Catcher is a Drupal module that I haven’t personally used, but sounds quite interesting. Anytime a URL from your website (even one that has been shortened by a service such as bit.ly) is mentioned on Twitter, this module will automatically detect that tweet and post it as a comment on your website. If anyone has any experience using this module, please leave a comment and let me know your thoughts.

Juitter – The Juitter Drupal module allows you to display a Twitter live search function directly onto your website. You can view a demo of this service here.

Activity Stream – This module allows you to display an activity stream on your site from Twitter as well as your other social networking sites.
Drupal OAuth Module
OAuth – The OAuth module allows for complete API authentication between your Drupal website and other external sites. This module allows users to securely integrate data from sites such as Twitter, Google, Flickr, and many more with any Drupal website.

Connect with Ryan Frank on Google+

13 Comments

  1. Jan

    here is a hack i did, not a module yet sadly. i might turn it into one soon. it lets your website send you direct tweets on certain events. i.e. a new comment is published. but it can do it on every event. it integrated with rules and action yet onyl by calling a php function, but i think tiÄs not too hard to use if you know some code.

    http://www.lopsta.com/en/story/send-yourself-a-direct-tweet-new-comments-drupal

  2. tom_o_t

    There’s also http://drupal.org/project/eparser_twitter – it uses eparser and feedapi to import a twitter xml feed and create nodes from status updates. This allows tweets to be commented on (as well as all the other things that can be done to nodes). The module’s in an early beta release at the moment, so feedback is welcome! http://twitter.com/thomasturnbull

    • kapil

      Any idea how to use the retweets link in the tweets module ?

  3. martijn

    Hi, this is great from drupal to twitter, but is n’t there a module the other way around to post twitter tweets as nodes, just like there is a linkedin or facebook integration?

    • Ryan Frank
      Ryan Frank

      The only module that I have personally used to do this is the Twitter Module. This is a pretty diverse module with quite a few different capabilities. One option allows you to pull in your Tweets which then get stored on nodes. Using the Views module you can easily customoize the layout of these nodes that display your tweets. Some of the basic module options let you specify how many tweets you want to display on each node as well as how long you want to store your tweets (Tweets from the last week, month, year, etc). I would reccommend giving this module a try.

  4. Jimmy McGrath

    For a really simple way of getting tweets to display on my site I just used the Aggregator module. This is a core module (i.e. it is included by default) that allows you to subscribe to RSS feed. Being a core module you don’t need to install anything. All you need to do is to configure the module to look at your twitter feed and away you go. If all you want is to display your tweets, then this is a really easy option. Cheers.

    • pierre

      thank!! it was exactly what i need

  5. Donna

    It’s true that Twiter has been growing popularity in social networking and that makes it hard to ignore on any content management system. I think we could use a lot more than one article to incorporate Twiter in Drupal considering that many Drupal users still need help with Drupal implementations. There is one thing I know for sure here: the efforts pay off.

  6. Marylee Cabanilla (Twitter Lover)

    Interesting input but I also found some really nice twitter tricks at 10bomb.com so you might want to check it out. Marylee

  7. Mason Bondi

    I am looking to bring a feed of mentions into my site, has anyone ever done this?

  8. Drupal Video Player

    Useful guide for Drupal owners! Ryan, you have given all information needed for integrating twitter with drupal! Thank for the knowledge share……………….

  9. Matt

    Getting the Drupal Twitter module to work is a chore.

    What a mess.

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>