[Facebooker-talk] Facebooker and existing website?

Prateek Dayal prateek.dayal at gmail.com
Thu Apr 10 09:40:42 EDT 2008


Hi

I am trying to use facebooker with an existing website that already
has a model named 'User'.

I therefore created a model called BkUser for use with facebooker.
Also I have different controllers for all facebook requests.

I am using acts_as_authenticated for handling login etc for my website
and everytime a user is logged into my facebook app and tries to also
browse the website (not through  facebook), I see an error like

undefined method `find_by_id' for Facebooker::User:Class

Application Trace

lib/authenticated_system.rb:11:in `current_user'
lib/authenticated_system.rb:6:in `logged_in?'
app/controllers/main_controller.rb:14:in `index'

I am using sql session store for storing sessions. As I understand
instead of User model, Facebooker::User model is being queried but I
can't understand why.

Regards

-- 
Prateek Dayal

www.Muziboo.com
get an audience


More information about the Facebooker-talk mailing list