[Facebooker-talk] Facebooker and existing website?

David Clements digidigo at gmail.com
Thu Apr 10 16:42:28 EDT 2008


On Thu, Apr 10, 2008 at 10:21 AM, Prateek Dayal <prateek.dayal at gmail.com>
wrote:

>
>
> 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?


In my experience diving into these types of issues in the Rails source tends
to be a serious time sync.  Can you just change your User class to Member or
something like that.


>
> 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.


You can do password fields with the fb:editor-custom tag.

<fb:editor-custom label="TravelersTable Password">
    <%= password_field_tag 'member[password]', nil %>
</fb:editor-custom>

I think there is a helper for it.


>
> 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?


You can call those methods.  They will cause redirects to happen if the user
is not authenticated  so you will want to special case them.

Dave

>
>
> Thanks a lot for your response
>
> Regards
> Prateek
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/facebooker-talk/attachments/20080410/f1e3f424/attachment-0001.html 


More information about the Facebooker-talk mailing list