OAuth

The OAuth Rails Kit makes it easy for you to integrate APIs from Facebook, Twitter, LinkedIn, and other OAuth providers into your Rails app.

If you want to be able to post to a user's Facebook stream, or pull in someone's profile info from LinkedIn, this is the Kit for you. This Kit walks you through setting up your OAuth-enabled application at Twitter, Facebook, and LinkedIn, and it provides clear examples of how to push and pull updates to and from those feeds.

Also included in the Kit is an example of how to connect to a user's Google account and interact with Google docs and Google spreadsheets.

Tested with:3.2.3

The license comes with full source code, and is not limited to a set number of developers, servers, or sites you wish to build.

The license is a one-time fee. You don’t need to pay yearly, per developer, or per server.

By purchasing a license you are agreeing to the license agreement

Most of the work is done by the omniauth gem (for logging in) and the twitter, linkedin, and koala gems (for interacting with the APIs). This Kit provides an additional shim class that unifies the simple case of posting to and reading from users feeds, so that once you have a user who has granted your app access to their data, you can do this:

user.authentications.find_by_provider('twitter').service.post("here's my tweet") # post to a feed user.authentications.find_by_provider('twitter').service.feed # read from a feed

You can even use the code from this Kit in your pre-existing application to add integrations with these 3rd-party services to user accounts already created in your system.

Take the Kit for a spin at Update It For Me, a site running at Heroku that is just the code from the Kit combined with API keys from the three services. You can log in to see and post to your feed. Though it will really post to your feed, it won't do so unless you tell it to. :)

This code is also in use in my applicant tracking system, Catch the Best. I use it to make it easy for people who are posting job ads to post links to those ads in their Facebook, Twitter, and LinkedIn streams.

Looking at the code, it seems pretty simple, but if I had to recreate that code I know it would take several hours. I quickly got Facebook working. It was really easy & somewhat shocking considering what we had to do before with facebooker and all that.

— Starr Horne
Live chat