I have a Rails 3 app that I would like to tweet certain status reports and so on. I am using the Twitter Gem. I have all the API keys and so on, and can actually tweet to a logged-in users account. But this isn’t what I want to do.
I want the app to tweet to its own account, “in the background” so to speak. So, when the user does something, the app should tweet to its own account (not the user’s) “this has been done.”
Is there any way to do this? Thank you.
I think I got it working. The trick was to make sure the account you are posting to is also the account where you register the app (it won’t work if you just have the keys). Then, just take the four keys (see below) and use the following code: