When is bebo used on an app that runs on facebook only? I was plagued with issues about the session key being invalid, so just upgraded to the latest version of facebooker. That seemed to take care of the problem, surprisingly enough. However, I now have a problem with updating my profile, updating the feed, etc., as I always get back the following: === You have a nil object when you didn''t expect it! The error occurred while evaluating nil.post vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in `set_profile_fbml_without_bebo_adapter'' vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb: 43:in `set_profile_fbml'' vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in `send_message'' vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in `method_missing'' app/controllers/imsick_controller.rb:524:in `update_profile'' == My method, update_profile, was working fine until the upgrade. In ''debugging'' this app (if you can really call it debugging), I''ve tracked it down to the session.post command in method set_profile_fbml in user.rb on line 203. Session is nil? So backing from that, I find that it is called by set_profile_fbml_without_bebo_adapter, which confused me as I figured only the facebooker adapter would be used. Any help would be appreciated. Thanks.
See my previous thread from last night. I had the same problem. The bug fix is in the user model. Here is the diff. 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 On Thu, Aug 14, 2008 at 5:20 PM, Phillip Shoemaker <pshoemaker at gmail.com> wrote:> When is bebo used on an app that runs on facebook only? > > I was plagued with issues about the session key being invalid, so just > upgraded to the latest version of facebooker. That seemed to take care of > the problem, surprisingly enough. > > However, I now have a problem with updating my profile, updating the feed, > etc., as I always get back the following: > > ===> > You have a nil object when you didn''t expect it! > The error occurred while evaluating nil.post > > vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in > `set_profile_fbml_without_bebo_adapter'' > vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:43:in > `set_profile_fbml'' > vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in > `send_message'' > vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in > `method_missing'' > app/controllers/imsick_controller.rb:524:in `update_profile'' > > ==> > My method, update_profile, was working fine until the upgrade. In > ''debugging'' this app (if you can really call it debugging), I''ve tracked it > down to the session.post command in method set_profile_fbml in user.rb on > line 203. Session is nil? So backing from that, I find that it is called by > set_profile_fbml_without_bebo_adapter, which confused me as I figured only > the facebooker adapter would be used. > > Any help would be appreciated. > > Thanks. > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >
Yeah, I ran across that after I sent the message, thanks. Although the code isn''t correct. Did you mean to do an elsif? On Aug 14, 2008, at 4:18 PM, Jonathan Otto wrote:> See my previous thread from last night. > > I had the same problem. The bug fix is in the user model. Here is > the diff. > > 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 > > On Thu, Aug 14, 2008 at 5:20 PM, Phillip Shoemaker <pshoemaker at gmail.com > > wrote: >> When is bebo used on an app that runs on facebook only? >> >> I was plagued with issues about the session key being invalid, so >> just >> upgraded to the latest version of facebooker. That seemed to take >> care of >> the problem, surprisingly enough. >> >> However, I now have a problem with updating my profile, updating >> the feed, >> etc., as I always get back the following: >> >> ===>> >> You have a nil object when you didn''t expect it! >> The error occurred while evaluating nil.post >> >> vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in >> `set_profile_fbml_without_bebo_adapter'' >> vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb: >> 43:in >> `set_profile_fbml'' >> vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in >> `send_message'' >> vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in >> `method_missing'' >> app/controllers/imsick_controller.rb:524:in `update_profile'' >> >> ==>> >> My method, update_profile, was working fine until the upgrade. In >> ''debugging'' this app (if you can really call it debugging), I''ve >> tracked it >> down to the session.post command in method set_profile_fbml in >> user.rb on >> line 203. Session is nil? So backing from that, I find that it is >> called by >> set_profile_fbml_without_bebo_adapter, which confused me as I >> figured only >> the facebooker adapter would be used. >> >> Any help would be appreciated. >> >> Thanks. >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >>
It''s a diff, or a patch, so the minus signs indicate code that gets removed, and the plus signs indicated code that gets added. On Thu, Aug 14, 2008 at 9:08 PM, Phillip Shoemaker <pshoemaker at gmail.com> wrote:> Yeah, I ran across that after I sent the message, thanks. Although the code > isn''t correct. Did you mean to do an elsif? > > > On Aug 14, 2008, at 4:18 PM, Jonathan Otto wrote: > >> See my previous thread from last night. >> >> I had the same problem. The bug fix is in the user model. Here is the >> diff. >> >> 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 >> >> On Thu, Aug 14, 2008 at 5:20 PM, Phillip Shoemaker <pshoemaker at gmail.com> >> wrote: >>> >>> When is bebo used on an app that runs on facebook only? >>> >>> I was plagued with issues about the session key being invalid, so just >>> upgraded to the latest version of facebooker. That seemed to take care of >>> the problem, surprisingly enough. >>> >>> However, I now have a problem with updating my profile, updating the >>> feed, >>> etc., as I always get back the following: >>> >>> ===>>> >>> You have a nil object when you didn''t expect it! >>> The error occurred while evaluating nil.post >>> >>> vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in >>> `set_profile_fbml_without_bebo_adapter'' >>> vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb:43:in >>> `set_profile_fbml'' >>> vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in >>> `send_message'' >>> vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in >>> `method_missing'' >>> app/controllers/imsick_controller.rb:524:in `update_profile'' >>> >>> ==>>> >>> My method, update_profile, was working fine until the upgrade. In >>> ''debugging'' this app (if you can really call it debugging), I''ve tracked >>> it >>> down to the session.post command in method set_profile_fbml in user.rb on >>> line 203. Session is nil? So backing from that, I find that it is called >>> by >>> set_profile_fbml_without_bebo_adapter, which confused me as I figured >>> only >>> the facebooker adapter would be used. >>> >>> Any help would be appreciated. >>> >>> Thanks. >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> > >
Oh! Nevermind. :) Thanks though. But now I get another odd message: Facebooker::Session::MissingOrInvalidParameter Of course, there''s no more detail to that... On Aug 14, 2008, at 7:29 PM, Jonathan Otto wrote:> It''s a diff, or a patch, so the minus signs indicate code that gets > removed, and the plus signs indicated code that gets added. > > On Thu, Aug 14, 2008 at 9:08 PM, Phillip Shoemaker <pshoemaker at gmail.com > > wrote: >> Yeah, I ran across that after I sent the message, thanks. Although >> the code >> isn''t correct. Did you mean to do an elsif? >> >> >> On Aug 14, 2008, at 4:18 PM, Jonathan Otto wrote: >> >>> See my previous thread from last night. >>> >>> I had the same problem. The bug fix is in the user model. Here is >>> the >>> diff. >>> >>> 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 >>> >>> On Thu, Aug 14, 2008 at 5:20 PM, Phillip Shoemaker <pshoemaker at gmail.com >>> > >>> wrote: >>>> >>>> When is bebo used on an app that runs on facebook only? >>>> >>>> I was plagued with issues about the session key being invalid, so >>>> just >>>> upgraded to the latest version of facebooker. That seemed to take >>>> care of >>>> the problem, surprisingly enough. >>>> >>>> However, I now have a problem with updating my profile, updating >>>> the >>>> feed, >>>> etc., as I always get back the following: >>>> >>>> ===>>>> >>>> You have a nil object when you didn''t expect it! >>>> The error occurred while evaluating nil.post >>>> >>>> vendor/plugins/facebooker/lib/facebooker/models/user.rb:203:in >>>> `set_profile_fbml_without_bebo_adapter'' >>>> vendor/plugins/facebooker/lib/facebooker/adapters/bebo_adapter.rb: >>>> 43:in >>>> `set_profile_fbml'' >>>> vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:287:in >>>> `send_message'' >>>> vendor/plugins/facebooker/lib/facebooker/rails/publisher.rb:384:in >>>> `method_missing'' >>>> app/controllers/imsick_controller.rb:524:in `update_profile'' >>>> >>>> ==>>>> >>>> My method, update_profile, was working fine until the upgrade. In >>>> ''debugging'' this app (if you can really call it debugging), I''ve >>>> tracked >>>> it >>>> down to the session.post command in method set_profile_fbml in >>>> user.rb on >>>> line 203. Session is nil? So backing from that, I find that it is >>>> called >>>> by >>>> set_profile_fbml_without_bebo_adapter, which confused me as I >>>> figured >>>> only >>>> the facebooker adapter would be used. >>>> >>>> Any help would be appreciated. >>>> >>>> Thanks. >>>> >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>>> >> >>