I posted on the Drupal forum a question to see if anyone has created a Drupal module to post to their site via Twitter.
Has anyone done any work to create a module that takes direct messages from a Twitter account and posts them to their Drupal site? I'm thinking about doing something like this to allow my site community to suggest links via Twitter.
Comments
01/14/09 @ 09:50
Uhm, why not use one of the feeds from twitter for that?
If you use this one you're almost there: http://twitter.com/statuses/friends_timeline.rss (you need to authenticate for it to show your own timeline)
01/14/09 @ 10:13
You could use this feed in conjunction with feed-leech module or something like it. THis will take RSS feeds and dump them to nodes as well as keep them up to date.
01/14/09 @ 11:28
@Jadwigo: I thought of doing it that way, but how do you think that would work with aggregator? http://twitter.com/statuses/friends_timeline.rss doesn't pass login and password.
01/14/09 @ 11:30
@BTOPRO: Doesn't look like feed leech is being developed any longer, but http://drupal.org/project/simplefeed might work.
01/14/09 @ 17:58
Why don't you just use search.twitter.com? Do a search for some keyword and tell your community to use it. Then pull that in using FeedAPI.
example search:
http://search.twitter.com/search?q=%40kylemathews
01/14/09 @ 18:47
As far as I'm aware, there isn't anything that takes DMs from twitter and posts them onto your site.
It's something that I've been meaning to tackle for a while. Have you started building anything yet?
01/15/09 @ 00:12
I did exactly this on DrupalSouth.net.nz (using the Feed API module and a feed of a query for 'DrupalSouth' from search.twitter.com.
01/15/09 @ 07:41
Thanks everyone for your help. Looks like I have a solution above that might work for the interim. Would eventually want to pursue creating module to parse those messages and put the URLs into a CCK field probably. This is a step in the right direction.
01/15/09 @ 20:45
http://drupal.org/project/twitter allows you to grab and display tweets per user.
But, if you only want to bring in your own tweets - you can simply create a 'block' view (with views 2) and post the block to your site.
Something like what I did at http://becircle.com - tweets found at the bottom of each page (re-design in progress mind you)
Not a wheel you have to re-invent.
01/15/09 @ 21:18
@Andremolnar: I looked at the Twitter module. But the use case is that I'm building up a community of readers via a Twitter account and want them to be able to submit content without being registered users on this drupal site. So I want their tweets addressed to a user, e.g. "d myaccount" to go into Drupal. The problem with just taking @myaccount or #myaccount is that anyone can post in, and I want only direct messages from people who I trust to be allowed to post into the site.
01/19/09 @ 17:59
Would it be possible to use XMPP/jabber as a sort of interface layer between drupal and twitter/other real time services to do something like:
Have an XMPP bot that will post to drupal, when people on it's roster send it a message.
Use tweet.im to provide an interface with twitter...
Everyone profits?
10/17/09 @ 06:23
another way to use twitter: let your drupal page direct message you system events. i use it for comments. but can be used for anything. i will probably submit a patch for the twitter module. but so long you can just use this code:
http://www.lopsta.com/en/story/send-yourself-a-direct-tweet-new-comments...
Post new comment