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
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
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
There's a devise plugin too: http://github.com/grimen/devise_facebook_connectable
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).