Twitter And Your Drupal Site

Printer-friendly versionPDF version
Twitter is the hottest social network on the web right now so it's reasonable to think that Drupal site builders would be seeking different ways to integrate their sites with Twitter.Thankfully, there are a number of ways that Drupallers can leverage the power of Twitter on their sites.
Twitter Module
The Twitter module allows you to post to or grab user data from Twitter. The module allows you to add the user and password for a site wide twitter account that will post items to Twitter when they are published to the Drupal site. You can choose which node types will send a notification to Twitter and add some additional default text to the post as well. There is also an option to let users input their personal Twitter account information so that their tweets can be imported to their profiles on your site.
 

Twitter Node Settings

Twitter Post Example

Imported Twitter Statuses

Tweet Module

The Tweet module adds a link that makes it very easy for site visitors to share your nodes on Twitter. The link to share with Twitter is displayed in the "links section" on nodes and teasers. The tweet link can be presented as an icon and the module project page points to some free "tweet this" buttons that you can use.

Tweet Link Example
 

Feed API

Twitter offers a wide variety of feeds that you can then import to your Drupal site using the Feed API module. Once imported via the Feed API module you can customize the presentaton of the tweets using the views module. Each user has their own RSS feed (here's mine) that is linked in the right sidebar of their profile page. Twitter searches via http://search.twitter.com also generate RSS feeds as well. Here's a feed link generated by a search for "drupal" on Twitter. You can get even more granular feeds from Twitter if you use their advanced search feature. For example, here's a feed generated from a search for "drupal" and my username on Twitter. The feed only displays the tweets from me that mention Drupal.

Tweets Imported With FeedAPI

Bookmark and Share Bookmark or Share Post

Comments

Anonymous's picture
Anonymous's picture

but you can't do multiple links in feed api

Problem I am having is that there isn't a parser for feed api that lets you bring in the links - which includes the avatar of the person who twittered the tweet. Shame. I am asking the SimplePie guys if they can mod simplepie to handle it and awaiting response.

Anonymous's picture

twitter search in one language

I would like to turn revelant tweets into nodes like the http://drupal.org/project/twitter_search_feeds module does, but I need to limit the search to only one language like so: http://search.twitter.com/search?q=drupalcon&lang=de or I need a way to filter on language in my nodes.
Any ideas?

learnbythedrop's picture
Anonymous's picture

You can do it with "twitter_search_feeds" module

Hi there,

If you are using the "twitter_search_feeds" module, then it's easy to achieve. In the configuration page (BASEURL/admin/settings/activitystream), under "Search Term:" you can provide "drupalcon&lang=de". It will give you all tweets that have the word 'drupalcon' and are in your language only.

Cheers,
Ipsita

Anonymous's picture

let drupal send direct tweets

i wrote this hack to let drupal send me a direct mail on defined events. i.e. when a new comment has been published. but it can do on every event. it's not a module yet though

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

Anonymous's picture

Drupal is a software that

Drupal is a software that enables a user to publish as well as manage huge quantity of data or content on a website. It can also be used on e-commerce applications, portals and resource directories. You might be thinking that using drupal software will cost you lots of money. This is completely free and available to all people through the GNU public license. Get it download and apply it on your website.

buy laptop
http://www.logicalblueone.com.au

Post new comment

Important
All comments on this site are moderated to prevent spam. Although we also use the Mollom module we have found that some gets through and that also affects people who have subscribed to email notifications. If you would like your comment to appear immediately please login with Google Friend Connect which supports your Google, Twitter or Yahoo account.
Google Friend Connect (leave a quick comment)
Loading
The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
Mollom CAPTCHA (play audio CAPTCHA)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.