How do I integrate Devise and Facebook's registration social plugin? - ruby-on-rails

I want to implement Facebook's Registration plugin
How do I do it using Devise ? is there any Devise/OmniAuth extension available ?

if you're using devise 1.2, the documentation is there in devise's github
https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview

I think you're misunderstanding the registration plugin. It's aimed for web users that don't yet have a Facebook account. If you want to use that, then add it as a simple iframe with a callback returning them to you site, and then add a regular Omniauth Facebook login.

you can try a gem sorcery

Related

Difference between Facebook graph and Koala rails

I am using devise as a way to use authentication for login and logout. However I am confused on how to post on a friends wall about my application.
1- If I use devise and Omniauth this allow me to either sign with devise, or with facebook. But once login, all devise omniauth won't be able to post to facebook correct?
2- My understanding of koala and facebook graph, is I must have the user credentials, therefore I must use omniauth? Which mean all user login in with devise, won't be able to post to facebook?
3- If I login using simple devise, is there a way for me to ask for credentials, which then i can use to then post to their friends wall.
Any tutorial, or guidance will be appreciated.
The only correct way to login into Facebook is to use OAuth, regardless of framework or implementation. You cannot post to a wall only using credentials, you must use an OAuth Flow as described in Facebook Login documentation.
https://developers.facebook.com/docs/facebook-login/

How to create a session in iOS native app, using Facebook OAuth and Rails Devise gem?

We have a web app running on Rails, using Devise and OmniAuth for user authentication.
We are now building a iOS native app for the web app. We don't really know what's the best practice to implement this.
We will create a button for user login with facebook, when users click on it, they will be redirected to Facebook native app for authentication.
Controllers in Rails are secure by Devise. If the iOS app want to talk with the web app, the iOS itself are required to create a session which can communicate with Devise
The Facebook native app only return a Facebook access token. We can't use this token to create a Devise session.
So.....
How can we create a Devise session with this combination?
Is there any better solution for this purpose?
Thank all.
Check out the following post:
http://matteomelani.wordpress.com/tag/rails/

Rails user registration using Twitter / Facebook / Google?

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

How to integrate Facebook in Rails

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.

rails plugin for twitter, facebook and openID

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.

Resources