[Facebooker-talk] Restful Authentication

Mike Mangino
Wed, 17 Sep 2008 17:14:08 -0000

On Sep 17, 2008, at 12:30 PM, William Thomas wrote:

> Has anybody integrated facebooker with a restful authentication app?
> I''ve read the pragmatic programmer''s book ch 8 about
making changes
> to session store, but I would really like to keep my default cookie
> session store. The goal here is to have a user on my site add
> facebook to their account, so I need to store the FB uid in my db.
> Unfortunately the session containing the user''s login is not used
> when fb comes back, rightfully so.
>

Sure, doing this can be relatively easy. There are a couple of
options. First, you can have the user login to your application from
inside the Facebook canvas. That way, you''ll have a facebook session
and can join that with their user in the DB. You could also include
the remember token in a URL where you send the user to Facebook. Then,
you could look up the restful authentication user by this remember
token and join them to the facebook user.

Mike

> Is there a way to pass a key across to the facebook canvas so when
> it calls back to my site, I can figure out what user/session it came
> from?
>
>
>
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk