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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Twitter.follower_ids("firebirdsql").ids.each do |id| | |
Twitter.follow(id) | |
puts id | |
end |
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