# Facebook, authlogic, and OAuth2

**URL:** <https://www.ruby-forum.com/t/facebook-authlogic-and-oauth2/188133>\
**Category:** Rails\
**Created:** [May 6, 2010, 11:12am UTC](https://www.ruby-forum.com/t/facebook-authlogic-and-oauth2/188133 "2010-05-06T11:12:22Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@alex](https://www.ruby-forum.com/u/alex)\
**Post date:** [May 6, 2010, 11:12am UTC](https://www.ruby-forum.com/t/facebook-authlogic-and-oauth2/188133/1 "2010-05-06T11:12:22Z")

</div>

Has anyone gotten started with getting the OAuth2 replacement for  
Facebook Connect working with auth\_logic?

I know there is an OAuth2 gem ([http://intridea.com/2010/4/22/oauth2-](http://intridea.com/2010/4/22/oauth2-)  
gem-just-in-time-for-facebook-graph?blog=company), and I’m thinking of  
using that to integrate.

Anyone know when the Fb Connect API will be shut down?

---

<div class="post-metadata">

**Author:** ![alex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@alex](https://www.ruby-forum.com/u/alex)\
**Post date:** [May 7, 2010, 10:43am UTC](https://www.ruby-forum.com/t/facebook-authlogic-and-oauth2/188133/2 "2010-05-07T10:43:05Z")

</div>

Yes ,working with authlogic you can use authlogic\_rpx gem to make your  
application login using facebook or anyothers.

> **[GitHub - tardate/rails-authlogic-rpx-sample: Sample rails application using...](https://github.com/tardate/rails-authlogic-rpx-sample)**
>
> Sample rails application using Authlogic with RPX for authentication - GitHub - tardate/rails-authlogic-rpx-sample: Sample rails application using Authlogic with RPX for authentication

For rpx

> **[RPX.com is for sale](https://rpx.com/)**
>
> Thank you for visiting our domain sales page. Why choose our premium domain names?Instant Brand Recognition: A premium domain instantly conveys professionalism, authority, and trustworthiness, helping you to establish a strong online...

---

<div class="post-metadata">

**Author:** ![alex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@alex](https://www.ruby-forum.com/u/alex)\
**Post date:** [May 7, 2010, 11:31am UTC](https://www.ruby-forum.com/t/facebook-authlogic-and-oauth2/188133/3 "2010-05-07T11:31:05Z")

</div>

I would also be interested, we are currently using authlogic…

---

<div class="post-metadata">

**Author:** ![alex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@alex](https://www.ruby-forum.com/u/alex)\
**Post date:** [May 8, 2010, 3:54am UTC](https://www.ruby-forum.com/t/facebook-authlogic-and-oauth2/188133/4 "2010-05-08T03:54:29Z")

</div>

Rpx might be good for some people. It’s a single sign-on service that  
you pay a nominal fee to use.

Doesn’t fit the bill for me. Thanks.

---

<div class="post-metadata">

**Author:** ![alex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@alex](https://www.ruby-forum.com/u/alex)\
**Post date:** [May 19, 2010, 12:12pm UTC](https://www.ruby-forum.com/t/facebook-authlogic-and-oauth2/188133/5 "2010-05-19T12:12:55Z")

</div>

I’m working on a new version of authlogic\_oauth that will use  
oauth2…  
I think it’s what you are searching for…  
It will be released at the end of the week, keep eyes on

> **[potomak - Overview](https://github.com/potomak)**
>
> potomak has 190 repositories available. Follow their code on GitHub.

---

<div class="post-metadata">

**Author:** ![alex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@alex](https://www.ruby-forum.com/u/alex)\
**Post date:** [May 20, 2010, 6:25pm UTC](https://www.ruby-forum.com/t/facebook-authlogic-and-oauth2/188133/6 "2010-05-20T18:25:23Z")

</div>

I recall the author saying he made the new gem as opposed to doing  
changes in the original oauth gem because oauth2 is “a different  
beast”.

I tried to use the oauth2 gem to log-in to twitter, and I confirm -  
obviously- it doesn’t work.

I’m looking forward Twitter to implement oauth 2.

---

<div class="post-metadata">

**Author:** ![alex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@alex](https://www.ruby-forum.com/u/alex)\
**Post date:** [May 20, 2010, 5:42am UTC](https://www.ruby-forum.com/t/facebook-authlogic-and-oauth2/188133/7 "2010-05-20T05:42:01Z")

</div>

nice. I’ll be looking forward to that.

Will it play nice with other login options (the old oauth in  
particular, which is still needed for Twitter)?

Cheers,  
Andrew

---

<div class="post-metadata">

**Author:** ![alex](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/db5fbb/32.png) [@alex](https://www.ruby-forum.com/u/alex)\
**Post date:** [June 13, 2010, 8:44pm UTC](https://www.ruby-forum.com/t/facebook-authlogic-and-oauth2/188133/8 "2010-06-13T20:44:46Z")

</div>

I just released a gem yesterday that adds OAuth2 support to Authlogic if  
you guys are still looking for something. You can find it here:  
[http://github.com/andyhite/authlogic\_oauth2](http://github.com/andyhite/authlogic_oauth2)

Andrew
