Cristobal Viedma
2008-Oct-23 20:16 UTC
[Facebooker-talk] Facebooker::Session::MissingOrInvalidParameter
Hi, I''m just new in facebooker but I am having a problem and I cannot find it answered before, so here I go. I tried to get the photos of a user and all the time I am getting this error: Facebooker::Session::MissingOrInvalidParameter in HolaController#index Invalid parameter vendor/plugins/facebooker/lib/facebooker/parser.rb:468:in `process'' vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'' vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post'' vendor/plugins/facebooker/lib/facebooker/session.rb:478:in `post_without_logging'' vendor/plugins/facebooker/lib/facebooker/session.rb:489:in `post'' .... What I am doing actually is just the following two lines in my controller: @user = facebook_session.user @photos = facebook_session.get_photos(:subj_id => @user.id) The one that is failing is the second one. I have also tried giving directly the id of the user: @photos = facebook_session.get_photos(:subj_id => anIDint) and still the same.. In my application controller I have the following: ensure_application_is_installed_by_facebook_user I know it must be something very stupid what I am doing... but I can''t tell! does anyone know what''s my error? Thanks, Cristobal Viedma
Yu-Shan Fung
2008-Oct-23 20:44 UTC
[Facebooker-talk] Facebooker::Session::MissingOrInvalidParameter
Did you set your api_key and secret_key to the matching values for your app in config/facebooker.yml? That''d be the first thing I''d check. On Thu, Oct 23, 2008 at 1:16 PM, Cristobal Viedma <cviedmai at gmail.com>wrote:> Hi, > > I''m just new in facebooker but I am having a problem and I cannot find > it answered before, so here I go. > I tried to get the photos of a user and all the time I am getting this > error: > > Facebooker::Session::MissingOrInvalidParameter in HolaController#index > Invalid parameter > vendor/plugins/facebooker/lib/facebooker/parser.rb:468:in `process'' > vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'' > vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post'' > vendor/plugins/facebooker/lib/facebooker/session.rb:478:in > `post_without_logging'' > vendor/plugins/facebooker/lib/facebooker/session.rb:489:in `post'' > .... > > What I am doing actually is just the following two lines in my controller: > > @user = facebook_session.user > @photos = facebook_session.get_photos(:subj_id => @user.id) > > The one that is failing is the second one. I have also tried giving > directly the id of the user: > @photos = facebook_session.get_photos(:subj_id => anIDint) > > and still the same.. > > In my application controller I have the following: > ensure_application_is_installed_by_facebook_user > > I know it must be something very stupid what I am doing... but I can''t > tell! > > does anyone know what''s my error? > > Thanks, > > Cristobal Viedma > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >-- "Reality is that which, when you stop believing in it, doesn''t go away." - Philip K. Dick, American Writer -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081023/cf10a34c/attachment.html>
Cristobal Viedma
2008-Oct-23 20:49 UTC
[Facebooker-talk] Facebooker::Session::MissingOrInvalidParameter
Yes yes, actually if I comment that line, I can put @user.name and stuff in my view and I can see it properly from facebook. Is just when I try to get the photos :S On Thu, Oct 23, 2008 at 10:44 PM, Yu-Shan Fung <ambivalence at gmail.com> wrote:> Did you set your api_key and secret_key to the matching values for your app > in config/facebooker.yml? That''d be the first thing I''d check. > > > On Thu, Oct 23, 2008 at 1:16 PM, Cristobal Viedma <cviedmai at gmail.com> > wrote: >> >> Hi, >> >> I''m just new in facebooker but I am having a problem and I cannot find >> it answered before, so here I go. >> I tried to get the photos of a user and all the time I am getting this >> error: >> >> Facebooker::Session::MissingOrInvalidParameter in HolaController#index >> Invalid parameter >> vendor/plugins/facebooker/lib/facebooker/parser.rb:468:in `process'' >> vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'' >> vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post'' >> vendor/plugins/facebooker/lib/facebooker/session.rb:478:in >> `post_without_logging'' >> vendor/plugins/facebooker/lib/facebooker/session.rb:489:in `post'' >> .... >> >> What I am doing actually is just the following two lines in my controller: >> >> @user = facebook_session.user >> @photos = facebook_session.get_photos(:subj_id => @user.id) >> >> The one that is failing is the second one. I have also tried giving >> directly the id of the user: >> @photos = facebook_session.get_photos(:subj_id => anIDint) >> >> and still the same.. >> >> In my application controller I have the following: >> ensure_application_is_installed_by_facebook_user >> >> I know it must be something very stupid what I am doing... but I can''t >> tell! >> >> does anyone know what''s my error? >> >> Thanks, >> >> Cristobal Viedma >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > -- > "Reality is that which, when you stop believing in it, doesn''t go away." > - Philip K. Dick, American Writer >
Yu-Shan Fung
2008-Oct-23 20:55 UTC
[Facebooker-talk] Facebooker::Session::MissingOrInvalidParameter
I think you want @user.uid instead of @user.id On Thu, Oct 23, 2008 at 1:16 PM, Cristobal Viedma <cviedmai at gmail.com>wrote:> Hi, > > I''m just new in facebooker but I am having a problem and I cannot find > it answered before, so here I go. > I tried to get the photos of a user and all the time I am getting this > error: > > Facebooker::Session::MissingOrInvalidParameter in HolaController#index > Invalid parameter > vendor/plugins/facebooker/lib/facebooker/parser.rb:468:in `process'' > vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'' > vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post'' > vendor/plugins/facebooker/lib/facebooker/session.rb:478:in > `post_without_logging'' > vendor/plugins/facebooker/lib/facebooker/session.rb:489:in `post'' > .... > > What I am doing actually is just the following two lines in my controller: > > @user = facebook_session.user > @photos = facebook_session.get_photos(:subj_id => @user.id) > > The one that is failing is the second one. I have also tried giving > directly the id of the user: > @photos = facebook_session.get_photos(:subj_id => anIDint) > > and still the same.. > > In my application controller I have the following: > ensure_application_is_installed_by_facebook_user > > I know it must be something very stupid what I am doing... but I can''t > tell! > > does anyone know what''s my error? > > Thanks, > > Cristobal Viedma > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >-- "Reality is that which, when you stop believing in it, doesn''t go away." - Philip K. Dick, American Writer -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081023/3e446b52/attachment.html>
Cristobal Viedma
2008-Oct-23 21:02 UTC
[Facebooker-talk] Facebooker::Session::MissingOrInvalidParameter
oh, I wrote it wrong, but I get the same problem, and also as I said I tried putting directly my uid (both in integer or string) and same error. Here you can find the full trace: Facebooker::Session::MissingOrInvalidParameter in HolaController#index Invalid parameter RAILS_ROOT: /home/chris/workspace-Aptana/cool-hunters Application Trace | Framework Trace | Full Trace vendor/plugins/facebooker/lib/facebooker/parser.rb:468:in `process'' vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'' vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post'' vendor/plugins/facebooker/lib/facebooker/session.rb:478:in `post_without_logging'' vendor/plugins/facebooker/lib/facebooker/session.rb:489:in `post'' vendor/plugins/facebooker/lib/facebooker/logging.rb:16:in `log_fb_api'' /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'' vendor/plugins/facebooker/lib/facebooker/logging.rb:16:in `log_fb_api'' vendor/plugins/facebooker/lib/facebooker/session.rb:488:in `post'' vendor/plugins/facebooker/lib/facebooker/session.rb:272:in `get_photos'' app/controllers/hola_controller.rb:5:in `index'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `send'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in `perform_action_without_filters'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in `call_filters'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in `perform_action_without_benchmark'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in `perform_action_without_caching'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in `perform_action'' /var/lib/gems/1.8/gems/activerecord-2.0.2-/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache'' /var/lib/gems/1.8/gems/activerecord-2.0.2-/lib/active_record/query_cache.rb:8:in `cache'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in `perform_action'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `send'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in `process_without_filters'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in `process_without_session_management_support'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in `process'' /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in `process'' /var/lib/gems/1.8/gems/rails-2.0.2-/lib/webrick_server.rb:78:in `service'' /var/lib/gems/1.8/gems/rails-2.0.2-/lib/commands/servers/webrick.rb:66 /var/lib/gems/1.8/gems/activesupport-2.0.2-/lib/active_support/dependencies.rb:496:in `require'' /var/lib/gems/1.8/gems/activesupport-2.0.2-/lib/active_support/dependencies.rb:342:in `new_constants_in'' /var/lib/gems/1.8/gems/activesupport-2.0.2-/lib/active_support/dependencies.rb:496:in `require'' /var/lib/gems/1.8/gems/rails-2.0.2-/lib/commands/server.rb:39 -e:2:in `load'' -e:2 On Thu, Oct 23, 2008 at 10:55 PM, Yu-Shan Fung <ambivalence at gmail.com> wrote:> I think you want @user.uid instead of @user.id > > On Thu, Oct 23, 2008 at 1:16 PM, Cristobal Viedma <cviedmai at gmail.com> > wrote: >> >> Hi, >> >> I''m just new in facebooker but I am having a problem and I cannot find >> it answered before, so here I go. >> I tried to get the photos of a user and all the time I am getting this >> error: >> >> Facebooker::Session::MissingOrInvalidParameter in HolaController#index >> Invalid parameter >> vendor/plugins/facebooker/lib/facebooker/parser.rb:468:in `process'' >> vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'' >> vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post'' >> vendor/plugins/facebooker/lib/facebooker/session.rb:478:in >> `post_without_logging'' >> vendor/plugins/facebooker/lib/facebooker/session.rb:489:in `post'' >> .... >> >> What I am doing actually is just the following two lines in my controller: >> >> @user = facebook_session.user >> @photos = facebook_session.get_photos(:subj_id => @user.id) >> >> The one that is failing is the second one. I have also tried giving >> directly the id of the user: >> @photos = facebook_session.get_photos(:subj_id => anIDint) >> >> and still the same.. >> >> In my application controller I have the following: >> ensure_application_is_installed_by_facebook_user >> >> I know it must be something very stupid what I am doing... but I can''t >> tell! >> >> does anyone know what''s my error? >> >> Thanks, >> >> Cristobal Viedma >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > -- > "Reality is that which, when you stop believing in it, doesn''t go away." > - Philip K. Dick, American Writer >
Jonathan Otto
2008-Oct-24 18:52 UTC
[Facebooker-talk] Facebooker::Session::MissingOrInvalidParameter
Here is the method signature of get_photos() def get_photos(pids = nil, subj_id = nil, aid = nil) It does not appear to take a hash as a list of arguments. Since you indicate that you want to use the subject_id (which finds photos tagged with that user) try passing nil for the first parameter. @photos = facebook_session.get_photos(nil, @user.uid) On Thu, Oct 23, 2008 at 4:02 PM, Cristobal Viedma <cviedmai at gmail.com> wrote:> oh, I wrote it wrong, but I get the same problem, and also as I said I > tried putting directly my uid (both in integer or string) and same > error. > > Here you can find the full trace: > > Facebooker::Session::MissingOrInvalidParameter in HolaController#index > > Invalid parameter > > RAILS_ROOT: /home/chris/workspace-Aptana/cool-hunters > Application Trace | Framework Trace | Full Trace > > vendor/plugins/facebooker/lib/facebooker/parser.rb:468:in `process'' > vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'' > vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post'' > vendor/plugins/facebooker/lib/facebooker/session.rb:478:in > `post_without_logging'' > vendor/plugins/facebooker/lib/facebooker/session.rb:489:in `post'' > vendor/plugins/facebooker/lib/facebooker/logging.rb:16:in `log_fb_api'' > /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' > /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'' > vendor/plugins/facebooker/lib/facebooker/logging.rb:16:in `log_fb_api'' > vendor/plugins/facebooker/lib/facebooker/session.rb:488:in `post'' > vendor/plugins/facebooker/lib/facebooker/session.rb:272:in `get_photos'' > app/controllers/hola_controller.rb:5:in `index'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in > `send'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in > `perform_action_without_filters'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in > `call_filters'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in > `perform_action_without_benchmark'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in > `perform_action_without_rescue'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in > `perform_action_without_caching'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in > `perform_action'' > /var/lib/gems/1.8/gems/activerecord-2.0.2-/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in > `cache'' > /var/lib/gems/1.8/gems/activerecord-2.0.2-/lib/active_record/query_cache.rb:8:in > `cache'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in > `perform_action'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in > `send'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in > `process_without_filters'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in > `process_without_session_management_support'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in > `process'' > /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in > `process'' > /var/lib/gems/1.8/gems/rails-2.0.2-/lib/webrick_server.rb:78:in `service'' > /var/lib/gems/1.8/gems/rails-2.0.2-/lib/commands/servers/webrick.rb:66 > /var/lib/gems/1.8/gems/activesupport-2.0.2-/lib/active_support/dependencies.rb:496:in > `require'' > /var/lib/gems/1.8/gems/activesupport-2.0.2-/lib/active_support/dependencies.rb:342:in > `new_constants_in'' > /var/lib/gems/1.8/gems/activesupport-2.0.2-/lib/active_support/dependencies.rb:496:in > `require'' > /var/lib/gems/1.8/gems/rails-2.0.2-/lib/commands/server.rb:39 > -e:2:in `load'' > -e:2 > > > > On Thu, Oct 23, 2008 at 10:55 PM, Yu-Shan Fung <ambivalence at gmail.com> wrote: >> I think you want @user.uid instead of @user.id >> >> On Thu, Oct 23, 2008 at 1:16 PM, Cristobal Viedma <cviedmai at gmail.com> >> wrote: >>> >>> Hi, >>> >>> I''m just new in facebooker but I am having a problem and I cannot find >>> it answered before, so here I go. >>> I tried to get the photos of a user and all the time I am getting this >>> error: >>> >>> Facebooker::Session::MissingOrInvalidParameter in HolaController#index >>> Invalid parameter >>> vendor/plugins/facebooker/lib/facebooker/parser.rb:468:in `process'' >>> vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'' >>> vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post'' >>> vendor/plugins/facebooker/lib/facebooker/session.rb:478:in >>> `post_without_logging'' >>> vendor/plugins/facebooker/lib/facebooker/session.rb:489:in `post'' >>> .... >>> >>> What I am doing actually is just the following two lines in my controller: >>> >>> @user = facebook_session.user >>> @photos = facebook_session.get_photos(:subj_id => @user.id) >>> >>> The one that is failing is the second one. I have also tried giving >>> directly the id of the user: >>> @photos = facebook_session.get_photos(:subj_id => anIDint) >>> >>> and still the same.. >>> >>> In my application controller I have the following: >>> ensure_application_is_installed_by_facebook_user >>> >>> I know it must be something very stupid what I am doing... but I can''t >>> tell! >>> >>> does anyone know what''s my error? >>> >>> Thanks, >>> >>> Cristobal Viedma >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >> >> >> -- >> "Reality is that which, when you stop believing in it, doesn''t go away." >> - Philip K. Dick, American Writer >> > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >
Cristobal Viedma
2008-Oct-25 01:16 UTC
[Facebooker-talk] Facebooker::Session::MissingOrInvalidParameter
oh yes, it works! I was just following the Rails of facebook peepcode book and they had it wrong there... maybe the version change, dunno... thank you very much! On Fri, Oct 24, 2008 at 8:52 PM, Jonathan Otto <jonathan.otto at gmail.com> wrote:> Here is the method signature of get_photos() > > def get_photos(pids = nil, subj_id = nil, aid = nil) > > It does not appear to take a hash as a list of arguments. Since you > indicate that you want to use the subject_id (which finds photos > tagged with that user) try passing nil for the first parameter. > > @photos = facebook_session.get_photos(nil, @user.uid) > > On Thu, Oct 23, 2008 at 4:02 PM, Cristobal Viedma <cviedmai at gmail.com> wrote: >> oh, I wrote it wrong, but I get the same problem, and also as I said I >> tried putting directly my uid (both in integer or string) and same >> error. >> >> Here you can find the full trace: >> >> Facebooker::Session::MissingOrInvalidParameter in HolaController#index >> >> Invalid parameter >> >> RAILS_ROOT: /home/chris/workspace-Aptana/cool-hunters >> Application Trace | Framework Trace | Full Trace >> >> vendor/plugins/facebooker/lib/facebooker/parser.rb:468:in `process'' >> vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'' >> vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post'' >> vendor/plugins/facebooker/lib/facebooker/session.rb:478:in >> `post_without_logging'' >> vendor/plugins/facebooker/lib/facebooker/session.rb:489:in `post'' >> vendor/plugins/facebooker/lib/facebooker/logging.rb:16:in `log_fb_api'' >> /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'' >> /usr/lib/ruby/1.8/benchmark.rb:307:in `realtime'' >> vendor/plugins/facebooker/lib/facebooker/logging.rb:16:in `log_fb_api'' >> vendor/plugins/facebooker/lib/facebooker/session.rb:488:in `post'' >> vendor/plugins/facebooker/lib/facebooker/session.rb:272:in `get_photos'' >> app/controllers/hola_controller.rb:5:in `index'' >> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in >> `send'' >> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:1158:in >> `perform_action_without_filters'' >> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:697:in >> `call_filters'' >> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:689:in >> `perform_action_without_benchmark'' >> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue'' >> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:68:in >> `perform_action_without_rescue'' >> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/rescue.rb:199:in >> `perform_action_without_caching'' >> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:678:in >> `perform_action'' >> /var/lib/gems/1.8/gems/activerecord-2.0.2-/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in >> `cache'' >> /var/lib/gems/1.8/gems/activerecord-2.0.2-/lib/active_record/query_cache.rb:8:in >> `cache'' >> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/caching.rb:677:in >> `perform_action'' >> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in >> `send'' >> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:524:in >> `process_without_filters'' >> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/filters.rb:685:in >> `process_without_session_management_support'' >> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/session_management.rb:123:in >> `process'' >> /var/lib/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:388:in >> `process'' >> /var/lib/gems/1.8/gems/rails-2.0.2-/lib/webrick_server.rb:78:in `service'' >> /var/lib/gems/1.8/gems/rails-2.0.2-/lib/commands/servers/webrick.rb:66 >> /var/lib/gems/1.8/gems/activesupport-2.0.2-/lib/active_support/dependencies.rb:496:in >> `require'' >> /var/lib/gems/1.8/gems/activesupport-2.0.2-/lib/active_support/dependencies.rb:342:in >> `new_constants_in'' >> /var/lib/gems/1.8/gems/activesupport-2.0.2-/lib/active_support/dependencies.rb:496:in >> `require'' >> /var/lib/gems/1.8/gems/rails-2.0.2-/lib/commands/server.rb:39 >> -e:2:in `load'' >> -e:2 >> >> >> >> On Thu, Oct 23, 2008 at 10:55 PM, Yu-Shan Fung <ambivalence at gmail.com> wrote: >>> I think you want @user.uid instead of @user.id >>> >>> On Thu, Oct 23, 2008 at 1:16 PM, Cristobal Viedma <cviedmai at gmail.com> >>> wrote: >>>> >>>> Hi, >>>> >>>> I''m just new in facebooker but I am having a problem and I cannot find >>>> it answered before, so here I go. >>>> I tried to get the photos of a user and all the time I am getting this >>>> error: >>>> >>>> Facebooker::Session::MissingOrInvalidParameter in HolaController#index >>>> Invalid parameter >>>> vendor/plugins/facebooker/lib/facebooker/parser.rb:468:in `process'' >>>> vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'' >>>> vendor/plugins/facebooker/lib/facebooker/service.rb:14:in `post'' >>>> vendor/plugins/facebooker/lib/facebooker/session.rb:478:in >>>> `post_without_logging'' >>>> vendor/plugins/facebooker/lib/facebooker/session.rb:489:in `post'' >>>> .... >>>> >>>> What I am doing actually is just the following two lines in my controller: >>>> >>>> @user = facebook_session.user >>>> @photos = facebook_session.get_photos(:subj_id => @user.id) >>>> >>>> The one that is failing is the second one. I have also tried giving >>>> directly the id of the user: >>>> @photos = facebook_session.get_photos(:subj_id => anIDint) >>>> >>>> and still the same.. >>>> >>>> In my application controller I have the following: >>>> ensure_application_is_installed_by_facebook_user >>>> >>>> I know it must be something very stupid what I am doing... but I can''t >>>> tell! >>>> >>>> does anyone know what''s my error? >>>> >>>> Thanks, >>>> >>>> Cristobal Viedma >>>> _______________________________________________ >>>> Facebooker-talk mailing list >>>> Facebooker-talk at rubyforge.org >>>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >>> >>> >>> -- >>> "Reality is that which, when you stop believing in it, doesn''t go away." >>> - Philip K. Dick, American Writer >>> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> >