Anand
Anand

Reputation: 10400

How to create Rails app with Facebook single sign-on?

I am creating a rails application where I need to allow users to login to my site with their facebook IDs.

How do I do that. I don't understand the facebook documentation much. Are there any other clear resources on the internet?

thanks

Upvotes: 0

Views: 806

Answers (6)

rbxcbe
rbxcbe

Reputation: 36

For single sign on, you can get a simple copy/paste solution from LaunchBit. It's free.

Upvotes: 0

Olly
Olly

Reputation: 7758

OmniAuth is a new kid on the block which looks promising. It's Rack-based and provides a common API for authentication via Twitter, Facebook, LinkedIn et al.

Upvotes: 1

Jesse Wolgamott
Jesse Wolgamott

Reputation: 40277

We just implemented a Facebook Connect using mini_fb -- it uses the new facebook graph api, which is cool to get data. And if all you're looking for is to login, it's create.

They have an example for facebook_connect and for authentication (to query for data).

Upvotes: 0

hellvinz
hellvinz

Reputation: 3500

There's a devise plugin too: http://github.com/grimen/devise_facebook_connectable

Upvotes: 0

Irukandji
Irukandji

Reputation: 1198

Check the pallstrom's code: fonr.

Here the demo application.

Upvotes: 0

Tom
Tom

Reputation: 44881

You should be able to do this using oauth, here's a ruby tutorial: http://stakeventures.com/articles/2008/02/23/developing-oauth-clients-in-ruby

Upvotes: 0

Related Questions