[Facebooker-talk] Facebooker and existing website?

Prateek Dayal prateek.dayal at gmail.com
Thu Apr 10 12:21:34 EDT 2008


Hi Christopher,

Thanks for the reply. My responses inline.

On Thu, Apr 10, 2008 at 9:39 PM, Christopher Bailey
<chris at cobaltedge.com> wrote:
> One thing you may want to consider is using a combined user model.  This way
> you can associate your regular (non-Facebook) users and their Facebook
> account.  What's cool about that, is that if they take some action on your
> regular web site, you can say update their Facebook profile box for your
> app.  This is what we do, as do many sites.

The problem with this one is that for my app its not necessary for
people for facebook users to link their account (in fact most don't
even need to create accounts on my website). Another reason for not
doing it was that I plan to support opensocial soon and therefore did
not want to clutter up my user model too much. I have right now setup
an association linking the accounts (if linked)

I tried to dig deeper into the problem and I think the basic problem
is that whenever i do User.find, rails finds Facebooker::User class
before my regular User class. I tried doing ::User.find but that did
not help either. Any way to set a default search order?

> associate with their regular site account (we require this), and it sends
> them over to our site, they login, and in that process, we store off their
> Facebook infinite session key, and then redirect back to Facebook.  Again,
> this is straight forward to do.

I have a slightly OT doubt on this. I was trying to setup a login and
password form in my app that could be use to link accounts at any
point. I noticed that fbml does not have a password field for forms.
Is it mandatory to use iframe for this step in that case? Also can I
use ensure_application_is_installed_by_facebook_user  and other
facebooker methods in the iframe to get facebook uid and link with
account?

Thanks a lot for your response

Regards
Prateek


More information about the Facebooker-talk mailing list