Closed (won't fix)
Project:
Twitter
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2007 at 05:03 UTC
Updated:
12 Sep 2012 at 06:45 UTC
How about the other way around: Let your website have a Twitter identity and have Drupal's cron poll for new messages to the site (using the Twitter API).
Or would this be something that should better be done outside of Drupal (e.g. with a real cron and a shell script)?
Comments
Comment #1
bertboerland commentedmaybe i dont understand what you mean, but importing twitter's into drupal would be trivial since you just can grab the rss and import that in the news aggregator?
Comment #2
cglusky commentedThe below code was automagically generated by twitter's badge utility. You should be able to change "yourtwittername" in the code to your twitter name and stuff it in a block. This should work OK for site wide usage, but if you want each user to have there own, in say their profile page, there needs to be a hook to pull the users info and stuff it in a variable. I know it can be done and there is already a pending patch to do something similar I just don't have the time right now.
Comment #3
JulieLA commentedWow - THANK YOU! That's exactly what I was looking for.
Comment #4
Blinkme commentedTotally amazing ..thank you soo much!!
Comment #5
Shai commentedDon't forget RSS. Every Twitter account has a built in feed. So using Aggregator module (for simple implementations) or Feed Api (for more complex ones) -- you can do a lot. This is just an alternative to cglusky's approach. That approach is great too.
Comment #6
abhir314 commented+1 :-)
Comment #7
cglusky commentedYeah, I am using Twitter's Search API now to pull what I want through FeedAPI. The above code is just a very quick solution.
Here's a sample from Twitter's Search API that will return an Atom feed of all twetes with hashtag #drupal:
http://search.twitter.com/search.atom?q=%23drupal
Enjoy,
Coby
Comment #8
Shai commentedHere is some good stuff on creating a group Twitter account. Might be a tangent to what you are talking about, but it's cool stuff I thought you'd be interested in.
http://www.hilarymason.com/blog/web-dev/create-a-group-twitter-account/
Shai
Comment #9
cglusky commentedThanks Shai. Not sure I would go to all the fuss since a unique hashtag provides enough grouping for me. If you need more I guess you could create the pseudo group account on twitter and then have anyone interested send the twete to that pseudo group account name. They could also append a hashtag or two and you get pseudo sub groups.
Then you could use the Twitter Search API to pull the results.
twete sent to twitter user... '@coolhipconference' with a hashtag of... '#yougetthepoint'
(would be cool if it returned something)
http://search.twitter.com/search.atom?q=to%3Acoolhipconference+%23youget...
ah well, enough off topic stuff for one day.
R,
C
Comment #10
emdalton commentedThat works, but any subsequent edits on the page break the twitter listing, because the script tags get stripped out. I'm going to try to make an input filter for this.
Comment #11
emdalton commentedI mean, the suggestion in #2 works. I tried to edit my previous comment and couldn't -- got an error on save. Not sure what's up with that.
Comment #12
mkogel commentedI used the Twitter's html code generated from Twitter on a block which I created on the Drupal site.
1) it did not pull anything - Don't know how this works on your site.
2) it pulls only the users own tweeds not the followers/followees
The latter is what I wanted so I used the Twitter module. It works well now but there is a manula work involved, to add the other twitter accounts into the twitter accounts in order to view the friends' tweeds.
Comment #13
dhroople commentedIt is showing the tweets but hoe to display user image to it
Solution needed?
Thanks
Comment #14
Erikpost commentedwell shave my head and call me grandpa, Now I have to log on to twitter every time i visit my page....
Comment #15
killua99 commentedDrupal 5 is not maintenance any more, If this issue occurs in any version for Drupal 6 or Drupal 7 reopen this issue.
Comment #16
killua99 commentedops
Comment #17
jibran#2 Thanks for the code