Login to the facebook using omniouth-facebook and devise - ruby-on-rails

I am using devise gem for Sign in and sign up . Now i wanna include facebook and google login in my app . As I am newbie to Rails please suggest me the best method to facebook and google login , I have tried so many methods but they didnt worked please give me an working example. Thanks in advance.

Related

not working login with linked in angular 7

I have used angularx-social-login module for linkedin login.
But It not works.
I appreciate if you let me know the solution. thanks.
UPDATE
The library works fine with google but not with linkedin only.
I get this error when I call the linkedin login method.

Devise OmniAuth and Devise-otp

I am new to rails.
I want to do a google authentication app using Devise gem. (i.e) SignIn with Google after successful login by user and then I have to display otp view page (using Devise-otp gem)
Is it possible to implement those 2 features using Devise Gem in single app ?
If Possible can give me some tutorial links or some steps.
I completed Signin with google after that I don't know how to use Devise-otp to proceed second-step-verification process. so please help me.
I referred below links but it confused
https://github.com/AsteriskLabs/devise_google_authenticator
http://www.techhui.com/profiles/blogs/add-two-factor-authentication-to-your-rails-app-with-devise
You can use active_model_otp gem for this purpose.
Active model otp

how to share fixed data on facebook if used omniauth for authentication

I have used omniauth for authentication of user in rails. i just want to create a button on my site which when clicked should post to logged in users facebook profile a certain fixed data.
i have tried facebook_share gem but unable to specify the predefine text. kindly help me in this
thanks in advance
In place of facebook_share the better way is to use facebook api. link explains all
https://github.com/aayushkhandelwal11/training-assignment/blob/master/facebookshare.txt

How to integrate facebook comments in Rails application?

I've set up a Rails 3.2 application with Devise. I was wondering how I can allow users to comment using Facebook. Can I use facebook connect along with Devise? If I can, is it ok to have 2 methods of authentication on my site?
I've read some tutorials on setting up OAuth with Devise to allow facebook connect, but it's not all that clear to me. Does anyone know a good step-by-step tutorial on how to integrate facebook comments with Devise already set up? Thanks a lot!
You don't need to setup Facebook Connect for comments.
You have to first create a Facebook app, then generate the comments plugin. After, put the Javascript code in your application.html.erb after the body tag (my suggestion is to make a partial). In the end, drop the div with the fb-comments class where you want the comments box to appear.

How to update users facebook profile status from my rails web application

in my rails web application I am implementing Facebook connectivity. I want that whenever user updates his/her status on my site his/her facebook status should also be updated. Is there any working rails application for this?
Please help.Thank you.
Have a look at the Koala gem which acts as a client to the Facebook graph API and does exactly what you need.
fb_graph as well also accomplishes what the koala gem does .
Though to update on a user to user basis you'll need to have some sort of login system in place. In that case I'd look at Devise using omniauth to accomplish this.
I use devise + omniauth for authentication and getting the right access token.
I use Koala for updating + reading information.

Resources