News for hackers. Stuff that matters.
Re:OmniSocial: a Rails 3 Engine for Twitter and Facebook Logins by bcrescimanno on Tuesday October 12, 2010 @04:19PM (#1784770)
FTA: "If there’s one thing I’ve learnt over the last three Rails Rumbles, it’s that if you ask a user to create an account on your web application, then you may as well be asking them to leave."

Requiring users to sign in through a 3rd party site rather than offering them the chance to sign in directly provides the same, "you may leave," suggestion to a whole different class of users.

I know that without the capability to manage authentication with my own app as well as the hookup to the 3rd parties, it's a non-starter for me. I realize, of course, that other projects may not have this restriction. Very cool that you guys are putting this out there; I'm sure there are a ton of new Rails developers who will love this super simple integration.

Re:OmniSocial: a Rails 3 Engine for Twitter and Facebook Logins by boundlessdreamz on Tuesday October 12, 2010 @03:38PM (#1784603)
I will stick with OmniAuth as I want to use one of the existing auth libraries (devise/authlogic). I don't think integrating OmniAuth is difficult enough to warrant another gem.

With devise,you get so much more functionality and also allow you to offer a native login/password if you so desire.

Re:OmniSocial: a Rails 3 Engine for Twitter and Facebook Logins by cullenking on Tuesday October 12, 2010 @07:20PM (#1785386)
Ugh, I just tried devise and tossed it out within an hour. Way too much automagic, way too difficult to use it in any way but their scaffold. Still looking for a clean way to do facebook/twitter stuff however, so I'll checkout omnisocial and omniauth.
Re:OmniSocial: a Rails 3 Engine for Twitter and Facebook Logins by dmix on Tuesday October 12, 2010 @07:42PM (#1785449)
There's no need to use a complex plugin to provide logins with Facebook/Twitter.

Use the oauth2 gem and write it by hand. My FacebookAuth controller is only 20 lines of code and it works perfectly.

I've set up fb/twitter logins in 4 different apps and have tried all the gems/plugins.

Re:OmniSocial: a Rails 3 Engine for Twitter and Facebook Logins by cullenking on Tuesday October 12, 2010 @08:33PM (#1785553)
Thanks for the tip :)
Re:OmniSocial: a Rails 3 Engine for Twitter and Facebook Logins by knuckle_cake on Tuesday October 12, 2010 @04:39PM (#1784844)
We married OmniAuth with Authlogic to handle username/password (we're still on Rails 2, so no Devise for us). It wasn't too bad. Handling the validations for users was the tricky part, but Authlogic offers a ton of help in this area... way more than I expected.
Re:OmniSocial: a Rails 3 Engine for Twitter and Facebook Logins by pibefision on Tuesday October 12, 2010 @06:49PM (#1785309)
I stick with devise too, but I don't understand why the oauth2 functionalty it is not on the master gem. You need to import it from github to have this.
Re:OmniSocial: a Rails 3 Engine for Twitter and Facebook Logins by eob on Tuesday October 12, 2010 @10:37PM (#1785839)
I was just checking out their other site, decafsucks.com. They have a pretty slick "scroll to the bottom to auto-load more content" feature like Slashdot.

What's cool is that everything (tabs, ajax paging) is done via the anchor in the URL, for example #list=highest&page=3.

Does anyone know of a jQuery or Rails plugin that automates this task? Seems like a fairly generalizable thing to implement once and just reuse.