[Facebooker-talk] Facebooker and existing website?

Mike Mangino mmangino at elevatedrails.com
Thu Apr 10 17:46:25 EDT 2008


I would really like to see a full stack trace on this. Also, what  
version of Rails are you running?

Rails has some problems with class names existing in two namespaces.  
It can sometimes cause the problems you are seeing. That said, I don't  
see these issues on any of my apps either.

Mike

On Apr 10, 2008, at 4:01 PM, Prateek Dayal wrote:
> Hi David
>
> Thanks for the reply (and also for the excellent facebooker_tutorial
> on facebook). I am afraid things just got a bit more complicated for
> me.
>
>> 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.
>
> On some more inspection, I found out the following
>
> 1. If I start my webserver and browse the website, everything works  
> fine
> 2. If i access the facebook app and then try to browse the website, I
> start getting error for all models that I have. For example, I have a
> group model and I do a Group.find() to load  a page and I get an error
> on Facebooker::Group:Class. Looks like everything is being referenced
> as Facebooker::
>
> Could this be related to any facebooker setting? I have a feeling that
> the problem is not about two User class but about everything being
> referenced in Facebooker module
>
> Thanks again for helping me out
>
> Regards
> Prateek
>
>
>
>>
>>
>>>
>>>
>>>
>>> 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
>>>
>>
>>
>
>
>
> -- 
> Prateek Dayal
>
> www.Muziboo.com
> get an audience
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk

--
Mike Mangino
http://www.elevatedrails.com





More information about the Facebooker-talk mailing list