I am writing a facebook app by using ruby and rails. I will need Facebook connect and login, share, and timeline integration (posting on user's behalf). Is there any tutorial/guide or gem that you recommend.
Thank you
Cheers
Koala is a gem that interacts with Facebook's Graph API and can handle Facebook OAuth as well.
Koala has some good examples on Github, but if you like Ryan Bates covers Koala and Facebook's Graph API in Railscasts Pro #361 and #363. Both are paid episodes.
Omniauth is a great gem for handling many different OAuth providers, including Facebook. Ryan Bates covers it in several episodes.
I can recommend 3 gems for facebook authentication and login. Implementing them would be quite complex. For basic authentication you can use devise, then for facebook login, you can integrate omniauth with the omniauth-facebook gem into devise:
https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview
Related
I want to build an authentication system in my rails app with instagram, Does omniauth support instagram? or do I have to use the instagram gem instead?
after all, the gem instagram is more efficient than omniauth, its documentation is reliable and very constructive to use, for further person who'd wonder like me, you can go with instagram gem.
For my rails app, I implemented some authentication using twitter and facebook. I used omniauth-facebook and omniauth-twitter gem. Since these
Now for my university project, I have to implement authentication using our university API authentication system also. My question is, should I use omniauth or is there any other gems for this that would be easy to implement? I am confused because, omniauth has built in features for twitter, facebook etc. But for custom authentication, I am not sure how complex it would be. So I am asking which gem would be simpler for this purpose?
Is Devise a good option? Another extension? Roll my own as per OAuth in Rails - google, twitter, facebook, connect for login like stackoverflow login?
You can go with Devise in combination with Omniauth or use Omniauth on its own building your own authentication. You need to decide whether you want local+remote sign-up or remote sign-up only. I did both recently and wrote articles about it:
Devise + Omniauth: http://communityguides.heroku.com/articles/11
Omniauth, includes full code on Github: http://communityguides.heroku.com/articles/16
(Links updated 15.12.2012)
Edit: Regarding local sign-up - you might use myopenid as a replacement and send users over there if they do not have or do not want a Twitter/FB/Google account...
I highly recommend Devise (1.2 or newer) with OmniAuth. I have been successful in using that combination to enable single sign-on from a Rails application to GitHub, and it's fairly trivial to add support for additional providers.
https://github.com/plataformatec/devise/wiki/OmniAuth%3A-Overview
I hava a Rails application, I need to integrate Facebook. User can login with Facebook account and get his reviews in facebook and so on, how to deal with this case in rails? thanks!
Facebooker is no longer supported I recommend using Koala gem: https://github.com/arsduo/koala/wiki
There is a very comprehensive article here: http://www.packtpub.com/article/facebook-application-development-ruby-on-rails
And several existing plugins for this purpose like 'rfacebook', 'facebooker' or 'facebook-rails'. 'Facebooker' definitely has Facebook Connect abilities.
Is there a rails plugin which can handle authentication with facebook, twitter and openID providers (ex. google, yahoo...)
I would recommend Devise. It is a very active project that is maintained by José Valim who is a contributor to Rails core. I've been using it for several months for authentication with both Facebook and Google (through openid) without any real problems.
authlogic with authlogic_oauth & authlogic_facebook_connect will cover all of those.