I can''t set a user''s profile because the session
isn''t getting
initialized for the user object when instantiated from publisher.rb on
like 286. It seems the cast_to_facebook_id is failing as it tries to
grab the facebook_id attribute. I fixed this by accessing the uid
attribute instead.
But I am surprised no one else has had a problem with this, maybe this
was unique to me?
In the user model
def self.cast_to_facebook_id(object)
- if object.respond_to?(:facebook_id)
- object.facebook_id
+ if object.respond_to?(:uid)
+ object.uid
else
object
end