Commenting on the login w / twitter or facebook connect

I create my blog on rails and I want to include comments

I would like to have something similar to facebook connect and login with twitter. A user can log in with one of them and then publish. There are no anonymous posts.

I do not want to add more login services, just stay simple (i.e. no disqus)

How can i do this?

+4
source share
3 answers

I would suggest authlogic , as Devenve said. The Railscast tutorial is very useful. Also, authlogic created an example application as a tutorial.

Authlogic can be expanded to work with facebook and twitter with authlogic plugins:

Now you can enable login via facebook or twitter. Authlogic can do a lot more. If you want, you can enable railsapp to use openid authlogic_openid .

+5
source

There are plugins that help with them, although the only example of what I saw is this one (which I haven't used yet):

http://tardate.blogspot.com/2010/01/released-authlogicrpx-111-gem-now-with.html

It might be worth looking at the code, even if you are not using this plugin.

0
source

I am using authlogic with authlogic_facebook_connect and of course you need facebooker and set up facebook application etc ... authlogic takes some time to set up like this - podcast

0
source

Source: https://habr.com/ru/post/1298948/


All Articles