Wednesday, August 01, 2012

following twitter users at once from ruby

You need to create a new twitter application on dev and create a callback url for it

you can start with the code from twitter-app https://github.com/jnunemaker/twitter-app

clone it with git  , and then run
bundle install to have all the requirements in your rvm

Then create a button for it or a text box where you insert one user that you want to follow
and for each follower for one user you can add it to your list of followers after you aprove the app






I have added twitter.local in hosts also in domains anyware
and the callback is

http://twitter.local:3000/sessions/callback

More documentation for follow is here
http://rubydoc.info/gems/twitter/3.4.1/Twitter/API:follow