I'm using OmniAuth + Devise to allow users to register using Facebook/Twitter/Gowalla/etc attached to normal user accounts. Now when a user logs in using any of these, or their account, all their social networks are attached in a authentications table.
I need to be able to pull content from any of these providers, such as their tweets or their Facebook Places checkings, etc. I understand that I will need to use a different gem, plugin, whatever to do this but getting the config I need to work with those gems (and make requests) is confusing to me.
I need to be able to access the provider config items in omniauth.rb so I have API Keys and Secret Keys, etc, then I need to be able to grab tokens from the oAuth stuff to make requests.
Other gems like https://github.com/jrallison/authlogic_oauth seem to store oauth_token, oauth_secret and oauth_token, but OmniAuth does not.
As you can probably tell I am very new to Ruby, Rails and oAuth, so this is turning out to be a very challenging application. Help is very much needed.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…