Unwilling to pay for an account at BufferApp to queue more than 10 tweets, I decided to write my own Twitter Scheduler. It's ready for deployment to Heroku, please see comments in main.rb
.
- Allows you to enter a username and password of your choosing, stored in
main.rb
so people cannot randomly delete or add items to your tweet queue - Allows you to enter tweet text, up to 140 characters, which is then stored in a database
- Allows you to delete queued tweets
- Tweets the contents of the first item in the database, then deletes it from the database
- Using Heroku Scheduler, you can call the
Rakefile
task to send your tweets at whatever interval you choose - Works anywhere you can access a website (Tested in Chrome, Firefox, Safari, iPad - iOS7, iPhone - iOS7)
- Allow you to login with your Twitter account
- Allow you to edit a tweet you've already queued
- Tweet to multiple accounts
- Store your username and password in a database
- Heroku account
- Twitter account
- Register a Twitter app with the account that you want to tweet with at https://app.twitter.com so you can obtain your API credentials. Make sure you give your app read/write access. You do not need a callback URL.
- Heroku add-ons:
When scheduling, use the Heroku Scheduler to run a rake task: rake sendtweet
at whatever intervals you desire.
Twitter: @pibby
- Sitepoint: Just Do It: Learn Sinatra, Part One (Four part series, comments are very helpful in part 4 for deployment/database setup)
- Stackoverflow: Sinatra + Heroku + Datamapper deploy issues with dm-sqlite-adapter
- Stackoverflow: What is a very simple authentication scheme for Sinatra/Rack
- Stackoverflow: Twitter Gem for Ruby on Rails not working. What am I missing?