All I want to do is display tweets in my web application's footer, however I want to integrate twitter a lot more with my app in the future, so I don't want to resort to just using their little jquery snippet at the top of the page. However, I am having huge difficulty in aquiring the keys needed, and to be honest, I'd really appreciate some help with some of the jargon.The fact that you have to create a twitter application in order to recieve tweets from the api was completely alien to me and I'd like someone to clarify what I need to do below.
Here's a list of how I think things should be done, but please update this list because it doesn't seem to be working for me. Imagine I'm trying to create a twitter feed for the tweets belonging to the account awesome_kittens.
- visit https://dev.twitter.com/ and sign in as
awesome_kittens - click the
my_applicationsdropdown - click
create new appbutton - find the app's
consumer_key - find the app's
consumer_secret - find the app's
oauth_token - find the app's
oauth_secret - Use this information to connect to the api
I'm using Ruby on Rails, so in my case for step 8 I'd create an initilizer and do the below:
Twitter.configure do |config|
config.consumer_key = 'consumer_key'
config.consumer_secret = 'consumer_secret'
config.oauth_token = 'your_oauth_token_here'
config.oauth_token_secret = 'your_oauth_token_secret_here'
end
Confused by step 3. Is the application I've created magically linked to my awesome_kittens account? Why can I create an infinite number of different applications when signed in as awesome_kittens when I just want one for awesome_kittens? How do I make an application linked to awesome_kittens?
Completely stumped by steps 4, 5, 6 and 7. I've looked high and low and cannot find this information anywhere. No where. The only keys I can find are API key and API secret. Not a hint of oauth.
I'm using the Twitter Gem. Is this the best Gem for the job? Maybe I want my rails app to be able to tweet on the awesome_kittens account? What's the best job here?