I''m having troubles getting an approved user''s friends list without a session key... The FB documentation says I should be able to. Has anybody used this successfully ? s = Facebooker::Session.new(Facebooker.api_key, Facebooker.secret_key) => #<Facebooker::Session:0xb6d1caac @secret_key="[removed]", @api_key="[removed]">>> s.post(''facebook.friends.get'',{:uid => ''[removed]'',false)FACEBOOKER: FACEBOOKER: method - facebook.friends.get FACEBOOKER: api_key - [removed] FACEBOOKER: uid - [removed] FACEBOOKER: call_id - [removed] FACEBOOKER: sig - [removed] FACEBOOKER: v - 1.0 FACEBOOKER: <?xml version="1.0" encoding="UTF-8"?> <error_response xmlns="http://api.facebook.com/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://api.facebook.com/1.0/ http://api.facebook.com/1.0/facebook.xsd"> ? <error_code>102</error_code> ? <error_msg>Session key invalid or no longer valid</error_msg> ? <request_args list="true"> ??? <arg> ????? <key>method</key> ????? <value>facebook.friends.get</value> ??? </arg> ??? <arg> ????? <key>api_key</key> ????? <value>[my api key]</value> ??? </arg> ??? <arg> ????? <key>uid</key> ????? <value>[ my UID ] </value> ??? </arg> ??? <arg> ????? <key>call_id</key> ????? <value>[a real call id]</value> ??? </arg> ??? <arg> ????? <key>sig</key> ????? <value>[a real sig]</value> ??? </arg> ??? <arg> ????? <key>v</key> ????? <value>1.0</value> ??? </arg> ? </request_args> </error_response> Facebooker::Session::SessionExpired: Session key invalid or no longer valid ??? from [removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:462:in `process'' ??? from [removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in `parse'' ??? from [removed]vendor/plugins/facebooker/lib/facebooker/service.rb:21:in `post'' ??? from [removed]vendor/plugins/facebooker/lib/facebooker/session.rb:466:in `post'' ??? from (irb):3 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081007/b1ce320b/attachment.html>
Grab it from params[:fb_sig_friends] On Tue, Oct 7, 2008 at 3:08 PM, William Thomas <wthomas989 at yahoo.com> wrote:> I''m having troubles getting an approved user''s friends list without a > session key... The FB documentation says I should be able to. Has anybody > used this successfully ? > > s = Facebooker::Session.new(Facebooker.api_key, Facebooker.secret_key) > => #<Facebooker::Session:0xb6d1caac @secret_key="[removed]", > @api_key="[removed]"> >>> s.post(''facebook.friends.get'',{:uid => ''[removed]'',false) > FACEBOOKER: > FACEBOOKER: method - facebook.friends.get > FACEBOOKER: api_key - [removed] > FACEBOOKER: uid - [removed] > FACEBOOKER: call_id - [removed] > FACEBOOKER: sig - [removed] > FACEBOOKER: v - 1.0 > FACEBOOKER: <?xml version="1.0" encoding="UTF-8"?> > <error_response xmlns="http://api.facebook.com/1.0/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://api.facebook.com/1.0/ > http://api.facebook.com/1.0/facebook.xsd"> > > <error_code>102</error_code> > <error_msg>Session key invalid or no longer valid</error_msg> > > <request_args list="true"> > <arg> > <key>method</key> > <value>facebook.friends.get</value> > </arg> > <arg> > <key>api_key</key> > <value>[my api key]</value> > </arg> > <arg> > <key>uid</key> > <value>[ my UID ] </value> > </arg> > <arg> > <key>call_id</key> > <value>[a real call id]</value> > </arg> > <arg> > <key>sig</key> > <value>[a real sig]</value> > </arg> > <arg> > <key>v</key> > <value>1.0</value> > </arg> > </request_args> > </error_response> > > Facebooker::Session::SessionExpired: Session key invalid or no longer valid > from [removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:462:in > `process'' > from [removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in > `parse'' > from [removed]vendor/plugins/facebooker/lib/facebooker/service.rb:21:in > `post'' > from [removed]vendor/plugins/facebooker/lib/facebooker/session.rb:466:in > `post'' > from (irb):3 > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > >
I would like to do it outside of a canvas. --- On Tue, 10/7/08, Jonathan Otto <jonathan.otto at gmail.com> wrote: From: Jonathan Otto <jonathan.otto at gmail.com> Subject: Re: [Facebooker-talk] Friends.get w/out session? To: wthomas989 at yahoo.com Cc: facebooker-talk at rubyforge.org Date: Tuesday, October 7, 2008, 5:36 PM Grab it from params[:fb_sig_friends] On Tue, Oct 7, 2008 at 3:08 PM, William Thomas <wthomas989 at yahoo.com> wrote:> I''m having troubles getting an approved user''s friends listwithout a> session key... The FB documentation says I should be able to. Has anybody > used this successfully ? > > s = Facebooker::Session.new(Facebooker.api_key, Facebooker.secret_key) > => #<Facebooker::Session:0xb6d1caac@secret_key="[removed]",> @api_key="[removed]"> >>> s.post(''facebook.friends.get'',{:uid =>''[removed]'',false)> FACEBOOKER: > FACEBOOKER: method - facebook.friends.get > FACEBOOKER: api_key - [removed] > FACEBOOKER: uid - [removed] > FACEBOOKER: call_id - [removed] > FACEBOOKER: sig - [removed] > FACEBOOKER: v - 1.0 > FACEBOOKER: <?xml version="1.0"encoding="UTF-8"?>> <error_response xmlns="http://api.facebook.com/1.0/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://api.facebook.com/1.0/ > http://api.facebook.com/1.0/facebook.xsd"> > > <error_code>102</error_code> > <error_msg>Session key invalid or no longervalid</error_msg>> > <request_args list="true"> > <arg> > <key>method</key> > <value>facebook.friends.get</value> > </arg> > <arg> > <key>api_key</key> > <value>[my api key]</value> > </arg> > <arg> > <key>uid</key> > <value>[ my UID ] </value> > </arg> > <arg> > <key>call_id</key> > <value>[a real call id]</value> > </arg> > <arg> > <key>sig</key> > <value>[a real sig]</value> > </arg> > <arg> > <key>v</key> > <value>1.0</value> > </arg> > </request_args> > </error_response> > > Facebooker::Session::SessionExpired: Session key invalid or no longervalid> from[removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:462:in> `process'' > from[removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in> `parse'' > from[removed]vendor/plugins/facebooker/lib/facebooker/service.rb:21:in> `post'' > from[removed]vendor/plugins/facebooker/lib/facebooker/session.rb:466:in> `post'' > from (irb):3 > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081007/900549d9/attachment-0001.html>
Based on my reading of this information, it sounds like this only works if the user has a valid session for your application. If the user doesn''t it sounds like you will get this message. To verify that, visit your application''s canvas page and then try this call immediately afterwards from script/console. Does that work? Mike On Oct 7, 2008, at 8:14 PM, William Thomas wrote:> I would like to do it outside of a canvas. > > --- On Tue, 10/7/08, Jonathan Otto <jonathan.otto at gmail.com> wrote: > From: Jonathan Otto <jonathan.otto at gmail.com> > Subject: Re: [Facebooker-talk] Friends.get w/out session? > To: wthomas989 at yahoo.com > Cc: facebooker-talk at rubyforge.org > Date: Tuesday, October 7, 2008, 5:36 PM > > Grab it from params[:fb_sig_friends] > > On Tue, Oct 7, 2008 at 3:08 PM, William Thomas <wthomas989 at yahoo.com> > wrote: > > I''m having troubles getting an approved user''s friends list > without a > > session key... The FB documentation says I should be able to. Has > anybody > > used this successfully ? > > > > s = Facebooker::Session.new(Facebooker.api_key, > Facebooker.secret_key) > > => #<Facebooker::Session:0xb6d1caac > @secret_key="[removed]", > > @api_key="[removed]"> > >>> s.post(''facebook.friends.get'',{:uid => > ''[removed]'',false) > > FACEBOOKER: > > FACEBOOKER: method - facebook.friends.get > > FACEBOOKER: api_key - [removed] > > FACEBOOKER: uid - [removed] > > FACEBOOKER: call_id - [removed] > > FACEBOOKER: sig - [removed] > > FACEBOOKER: v - 1.0 > > FACEBOOKER: <?xml version="1.0" > encoding="UTF-8"?> > > <error_response xmlns="http://api.facebook.com/1.0/" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://api.facebook.com/1.0/ > > http://api.facebook.com/1.0/facebook.xsd"> > > > > <error_code>102</error_code> > > <error_msg>Session key invalid or no longer > valid</error_msg> > > > > <request_args > list="true"> > > <arg> > > <key>method</key> > > <value>facebook.friends.get</value> > > </arg> > > <arg> > > <key>api_key</key> > > <value>[my api key]</value> > > </arg> > > <arg> > > <key>uid</key> > > <value>[ my UID ] </value> > > </arg> > > <arg> > > <key>call_id</key> > > <value>[a real call id]</value> > > </arg> > > <arg> > > <key>sig</key> > > <value>[a real sig]</value> > > </arg> > > <arg> > > <key>v</key> > > <value>1.0</value> > > </arg> > > </request_args> > > > </error_response> > > > > Facebooker::Session::SessionExpired: Session key invalid or no > longer > valid > > from > [removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:462:in > > `process'' > > from > [removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in > > `parse'' > > from > [removed]vendor/plugins/facebooker/lib/facebooker/service.rb:21:in > > `post'' > > from > [removed]vendor/plugins/facebooker/lib/facebooker/session.rb:466:in > > `post'' > > from (irb):3 > > > > > > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
I am not remembering the specifics.. But I believe we have seen this problem before when we pass a session key for a method that no longer requires it. Facebook wasn''t doing the smart thing and ignoring it, instead they are still trying to validate it. Dave On Wed, Oct 8, 2008 at 7:42 AM, Mike Mangino <mmangino at elevatedrails.com>wrote:> Based on my reading of this information, it sounds like this only works if > the user has a valid session for your application. If the user doesn''t it > sounds like you will get this message. To verify that, visit your > application''s canvas page and then try this call immediately afterwards from > script/console. Does that work? > > Mike > > > On Oct 7, 2008, at 8:14 PM, William Thomas wrote: > > I would like to do it outside of a canvas. >> >> --- On Tue, 10/7/08, Jonathan Otto <jonathan.otto at gmail.com> wrote: >> From: Jonathan Otto <jonathan.otto at gmail.com> >> Subject: Re: [Facebooker-talk] Friends.get w/out session? >> To: wthomas989 at yahoo.com >> Cc: facebooker-talk at rubyforge.org >> Date: Tuesday, October 7, 2008, 5:36 PM >> >> Grab it from params[:fb_sig_friends] >> >> On Tue, Oct 7, 2008 at 3:08 PM, William Thomas <wthomas989 at yahoo.com> >> wrote: >> > I''m having troubles getting an approved user''s friends list >> without a >> > session key... The FB documentation says I should be able to. Has >> anybody >> > used this successfully ? >> > >> > s = Facebooker::Session.new(Facebooker.api_key, >> Facebooker.secret_key) >> > => #<Facebooker::Session:0xb6d1caac >> @secret_key="[removed]", >> > @api_key="[removed]"> >> >>> s.post(''facebook.friends.get'',{:uid => >> ''[removed]'',false) >> > FACEBOOKER: >> > FACEBOOKER: method - facebook.friends.get >> > FACEBOOKER: api_key - [removed] >> > FACEBOOKER: uid - [removed] >> > FACEBOOKER: call_id - [removed] >> > FACEBOOKER: sig - [removed] >> > FACEBOOKER: v - 1.0 >> > FACEBOOKER: <?xml version="1.0" >> encoding="UTF-8"?> >> > <error_response xmlns="http://api.facebook.com/1.0/" >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >> > xsi:schemaLocation="http://api.facebook.com/1.0/ >> > http://api.facebook.com/1.0/facebook.xsd"> >> > >> > <error_code>102</error_code> >> > <error_msg>Session key invalid or no longer >> valid</error_msg> >> > >> > <request_args >> list="true"> >> > <arg> >> > <key>method</key> >> > <value>facebook.friends.get</value> >> > </arg> >> > <arg> >> > <key>api_key</key> >> > <value>[my api key]</value> >> > </arg> >> > <arg> >> > <key>uid</key> >> > <value>[ my UID ] </value> >> > </arg> >> > <arg> >> > <key>call_id</key> >> > <value>[a real call id]</value> >> > </arg> >> > <arg> >> > <key>sig</key> >> > <value>[a real sig]</value> >> > </arg> >> > <arg> >> > <key>v</key> >> > <value>1.0</value> >> > </arg> >> > </request_args> >> > >> </error_response> >> > >> > Facebooker::Session::SessionExpired: Session key invalid or no longer >> valid >> > from >> [removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:462:in >> > `process'' >> > from >> [removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in >> > `parse'' >> > from >> [removed]vendor/plugins/facebooker/lib/facebooker/service.rb:21:in >> > `post'' >> > from >> [removed]vendor/plugins/facebooker/lib/facebooker/session.rb:466:in >> > `post'' >> > from (irb):3 >> > >> > >> > >> > _______________________________________________ >> > Facebooker-talk mailing list >> > Facebooker-talk at rubyforge.org >> > http://rubyforge.org/mailman/listinfo/facebooker-talk >> > >> > >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > -- > Mike Mangino > http://www.elevatedrails.com > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081008/d0eeb08b/attachment.html>
I didn''t think I was passing a session key to it. --- On Wed, 10/8/08, David Clements <digidigo at gmail.com> wrote: From: David Clements <digidigo at gmail.com> Subject: Re: [Facebooker-talk] Friends.get w/out session? To: "Mike Mangino" <mmangino at elevatedrails.com> Cc: wthomas989 at yahoo.com, facebooker-talk at rubyforge.org Date: Wednesday, October 8, 2008, 9:43 AM I am not remembering the specifics.. But I believe we have seen this problem before when we pass a session key for a method that no longer requires it.? Facebook wasn''t doing the smart thing and ignoring it, instead they are still trying to validate it. Dave On Wed, Oct 8, 2008 at 7:42 AM, Mike Mangino <mmangino at elevatedrails.com> wrote: Based on my reading of this information, it sounds like this only works if the user has a valid session for your application. If the user doesn''t it sounds like you will get this message. To verify that, visit your application''s canvas page and then try this call immediately afterwards from script/console. Does that work? Mike On Oct 7, 2008, at 8:14 PM, William Thomas wrote: I would like to do it outside of a canvas. --- On Tue, 10/7/08, Jonathan Otto <jonathan.otto at gmail.com> wrote: From: Jonathan Otto <jonathan.otto at gmail.com> Subject: Re: [Facebooker-talk] Friends.get w/out session? To: wthomas989 at yahoo.com Cc: facebooker-talk at rubyforge.org Date: Tuesday, October 7, 2008, 5:36 PM Grab it from params[:fb_sig_friends] On Tue, Oct 7, 2008 at 3:08 PM, William Thomas <wthomas989 at yahoo.com> wrote:> I''m having troubles getting an approved user''s friends listwithout a> session key... The FB documentation says I should be able to. Has anybody> used this successfully ?>> s = Facebooker::Session.new(Facebooker.api_key,?Facebooker.secret_key)> => #<Facebooker::Session:0xb6d1caac@secret_key="[removed]",> @api_key="[removed]">>>> s.post(''facebook.friends.get'',{:uid =>''[removed]'',false)> FACEBOOKER:> FACEBOOKER: method - facebook.friends.get> FACEBOOKER: api_key - [removed]> FACEBOOKER: uid - [removed]> FACEBOOKER: call_id - [removed]> FACEBOOKER: sig - [removed]> FACEBOOKER: v - 1.0> FACEBOOKER: <?xml version="1.0"encoding="UTF-8"?>> <error_response xmlns="http://api.facebook.com/1.0/"> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> xsi:schemaLocation="http://api.facebook.com/1.0/> http://api.facebook.com/1.0/facebook.xsd">>> ? <error_code>102</error_code>> ? <error_msg>Session key invalid or no longervalid</error_msg>>> ? <request_args?list="true">> ? ? <arg>> ? ? ? <key>method</key>> ? ? ? <value>facebook.friends.get</value>> ? ? </arg>> ? ? <arg>> ? ? ? <key>api_key</key>> ? ? ? <value>[my api key]</value>> ? ? </arg>> ? ? <arg>> ? ? ? <key>uid</key>> ? ? ? <value>[ my UID ] </value>> ? ? </arg>> ? ? <arg>> ? ? ? <key>call_id</key>> ? ? ? <value>[a real call id]</value>> ? ? </arg>> ? ? <arg>> ? ? ? <key>sig</key>> ? ? ? <value>[a real sig]</value>> ? ? </arg>> ? ? <arg>> ? ? ? <key>v</key>> ? ? ? <value>1.0</value>> ? ? </arg>> ? </request_args>>?</error_response>>> Facebooker::Session::SessionExpired: Session key invalid or no longervalid> ? ? from[removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:462:in> `process''> ? ? from[removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in> `parse''> ? ? from[removed]vendor/plugins/facebooker/lib/facebooker/service.rb:21:in> `post''> ? ? from[removed]vendor/plugins/facebooker/lib/facebooker/session.rb:466:in> `post''> ? ? from (irb):3>>>> _______________________________________________> Facebooker-talk mailing list> Facebooker-talk at rubyforge.org> http://rubyforge.org/mailman/listinfo/facebooker-talk>>_______________________________________________ Facebooker-talk mailing list Facebooker-talk at rubyforge.org http://rubyforge.org/mailman/listinfo/facebooker-talk -- Mike Mangino http://www.elevatedrails.com _______________________________________________ Facebooker-talk mailing list Facebooker-talk at rubyforge.org http://rubyforge.org/mailman/listinfo/facebooker-talk -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081008/eca12394/attachment-0001.html>
No I meat internally in the facebooker code. If that method used to require a session key, but now it no longer does. I might fail now. Dave On Wed, Oct 8, 2008 at 2:27 PM, William Thomas <wthomas989 at yahoo.com> wrote:> I didn''t think I was passing a session key to it. > > --- On *Wed, 10/8/08, David Clements <digidigo at gmail.com>* wrote: > > From: David Clements <digidigo at gmail.com> > Subject: Re: [Facebooker-talk] Friends.get w/out session? > To: "Mike Mangino" <mmangino at elevatedrails.com> > Cc: wthomas989 at yahoo.com, facebooker-talk at rubyforge.org > Date: Wednesday, October 8, 2008, 9:43 AM > > > I am not remembering the specifics.. But I believe we have seen this > problem before when we pass a session key for a method that no longer > requires it. Facebook wasn''t doing the smart thing and ignoring it, instead > they are still trying to validate it. > > Dave > > > On Wed, Oct 8, 2008 at 7:42 AM, Mike Mangino <mmangino at elevatedrails.com>wrote: > >> Based on my reading of this information, it sounds like this only works if >> the user has a valid session for your application. If the user doesn''t it >> sounds like you will get this message. To verify that, visit your >> application''s canvas page and then try this call immediately afterwards from >> script/console. Does that work? >> >> Mike >> >> >> On Oct 7, 2008, at 8:14 PM, William Thomas wrote: >> >> I would like to do it outside of a canvas. >>> >>> --- On Tue, 10/7/08, Jonathan Otto <jonathan.otto at gmail.com> wrote: >>> From: Jonathan Otto <jonathan.otto at gmail.com> >>> Subject: Re: [Facebooker-talk] Friends.get w/out session? >>> To: wthomas989 at yahoo.com >>> Cc: facebooker-talk at rubyforge.org >>> Date: Tuesday, October 7, 2008, 5:36 PM >>> >>> Grab it from params[:fb_sig_friends] >>> >>> On Tue, Oct 7, 2008 at 3:08 PM, William Thomas <wthomas989 at yahoo.com> >>> wrote: >>> > I''m having troubles getting an approved user''s friends list >>> without a >>> > session key... The FB documentation says I should be able to. Has >>> anybody >>> > used this successfully ? >>> > >>> > s = Facebooker::Session.new(Facebooker.api_key, >>> Facebooker.secret_key) >>> > => #<Facebooker::Session:0xb6d1caac >>> @secret_key="[removed]", >>> > @api_key="[removed]"> >>> >>> s.post(''facebook.friends.get'',{:uid => >>> ''[removed]'',false) >>> > FACEBOOKER: >>> > FACEBOOKER: method - facebook.friends.get >>> > FACEBOOKER: api_key - [removed] >>> > FACEBOOKER: uid - [removed] >>> > FACEBOOKER: call_id - [removed] >>> > FACEBOOKER: sig - [removed] >>> > FACEBOOKER: v - 1.0 >>> > FACEBOOKER: <?xml version="1.0" >>> encoding="UTF-8"?> >>> > <error_response xmlns="http://api.facebook.com/1.0/" >>> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >>> > xsi:schemaLocation="http://api.facebook.com/1.0/ >>> > http://api.facebook.com/1.0/facebook.xsd"> >>> > >>> > <error_code>102</error_code> >>> > <error_msg>Session key invalid or no longer >>> valid</error_msg> >>> > >>> > <request_args >>> list="true"> >>> > <arg> >>> > <key>method</key> >>> > <value>facebook.friends.get</value> >>> > </arg> >>> > <arg> >>> > <key>api_key</key> >>> > <value>[my api key]</value> >>> > </arg> >>> > <arg> >>> > <key>uid</key> >>> > <value>[ my UID ] </value> >>> > </arg> >>> > <arg> >>> > <key>call_id</key> >>> > <value>[a real call id]</value> >>> > </arg> >>> > <arg> >>> > <key>sig</key> >>> > <value>[a real sig]</value> >>> > </arg> >>> > <arg> >>> > <key>v</key> >>> > <value>1.0</value> >>> > </arg> >>> > </request_args> >>> > >>> </error_response> >>> > >>> > Facebooker::Session::SessionExpired: Session key invalid or no longer >>> valid >>> > from >>> [removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:462:in >>> > `process'' >>> > from >>> [removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in >>> > `parse'' >>> > from >>> [removed]vendor/plugins/facebooker/lib/facebooker/service.rb:21:in >>> > `post'' >>> > from >>> [removed]vendor/plugins/facebooker/lib/facebooker/session.rb:466:in >>> > `post'' >>> > from (irb):3 >>> > >>> > >>> > >>> > _______________________________________________ >>> > Facebooker-talk mailing list >>> > Facebooker-talk at rubyforge.org >>> > http://rubyforge.org/mailman/listinfo/facebooker-talk >>> > >>> > >>> >>> _______________________________________________ >>> Facebooker-talk mailing list >>> Facebooker-talk at rubyforge.org >>> http://rubyforge.org/mailman/listinfo/facebooker-talk >>> >> >> -- >> Mike Mangino >> http://www.elevatedrails.com >> >> >> >> >> _______________________________________________ >> Facebooker-talk mailing list >> Facebooker-talk at rubyforge.org >> http://rubyforge.org/mailman/listinfo/facebooker-talk >> > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081008/a204f26a/attachment.html>
The last parameter in the call to Session#post controls whether or not the signature gets included. Since it is set to false, it isn''t being included. Have you found anyone who can make this work using the API? Have you tried immediately after making an http request to your app as that user? Mike On Oct 8, 2008, at 4:27 PM, William Thomas wrote:> I didn''t think I was passing a session key to it. > > --- On Wed, 10/8/08, David Clements <digidigo at gmail.com> wrote: > From: David Clements <digidigo at gmail.com> > Subject: Re: [Facebooker-talk] Friends.get w/out session? > To: "Mike Mangino" <mmangino at elevatedrails.com> > Cc: wthomas989 at yahoo.com, facebooker-talk at rubyforge.org > Date: Wednesday, October 8, 2008, 9:43 AM > > I am not remembering the specifics.. But I believe we have seen this > problem before when we pass a session key for a method that no > longer requires it. Facebook wasn''t doing the smart thing and > ignoring it, instead they are still trying to validate it. > > Dave > > > On Wed, Oct 8, 2008 at 7:42 AM, Mike Mangino <mmangino at elevatedrails.com > > wrote: > Based on my reading of this information, it sounds like this only > works if the user has a valid session for your application. If the > user doesn''t it sounds like you will get this message. To verify > that, visit your application''s canvas page and then try this call > immediately afterwards from script/console. Does that work? > > Mike > > > On Oct 7, 2008, at 8:14 PM, William Thomas wrote: > > I would like to do it outside of a canvas. > > --- On Tue, 10/7/08, Jonathan Otto <jonathan.otto at gmail.com> wrote: > From: Jonathan Otto <jonathan.otto at gmail.com> > Subject: Re: [Facebooker-talk] Friends.get w/out session? > To: wthomas989 at yahoo.com > Cc: facebooker-talk at rubyforge.org > Date: Tuesday, October 7, 2008, 5:36 PM > > Grab it from params[:fb_sig_friends] > > On Tue, Oct 7, 2008 at 3:08 PM, William Thomas <wthomas989 at yahoo.com> > wrote: > > I''m having troubles getting an approved user''s friends list > without a > > session key... The FB documentation says I should be able to. Has > anybody > > used this successfully ? > > > > s = Facebooker::Session.new(Facebooker.api_key, > Facebooker.secret_key) > > => #<Facebooker::Session:0xb6d1caac > @secret_key="[removed]", > > @api_key="[removed]"> > >>> s.post(''facebook.friends.get'',{:uid => > ''[removed]'',false) > > FACEBOOKER: > > FACEBOOKER: method - facebook.friends.get > > FACEBOOKER: api_key - [removed] > > FACEBOOKER: uid - [removed] > > FACEBOOKER: call_id - [removed] > > FACEBOOKER: sig - [removed] > > FACEBOOKER: v - 1.0 > > FACEBOOKER: <?xml version="1.0" > encoding="UTF-8"?> > > <error_response xmlns="http://api.facebook.com/1.0/" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://api.facebook.com/1.0/ > > http://api.facebook.com/1.0/facebook.xsd"> > > > > <error_code>102</error_code> > > <error_msg>Session key invalid or no longer > valid</error_msg> > > > > <request_args > list="true"> > > <arg> > > <key>method</key> > > <value>facebook.friends.get</value> > > </arg> > > <arg> > > <key>api_key</key> > > <value>[my api key]</value> > > </arg> > > <arg> > > <key>uid</key> > > <value>[ my UID ] </value> > > </arg> > > <arg> > > <key>call_id</key> > > <value>[a real call id]</value> > > </arg> > > <arg> > > <key>sig</key> > > <value>[a real sig]</value> > > </arg> > > <arg> > > <key>v</key> > > <value>1.0</value> > > </arg> > > </request_args> > > > </error_response> > > > > Facebooker::Session::SessionExpired: Session key invalid or no > longer > valid > > from > [removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:462:in > > `process'' > > from > [removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in > > `parse'' > > from > [removed]vendor/plugins/facebooker/lib/facebooker/service.rb:21:in > > `post'' > > from > [removed]vendor/plugins/facebooker/lib/facebooker/session.rb:466:in > > `post'' > > from (irb):3 > > > > > > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com
This thread claims people have http://forum.developers.facebook.com/viewtopic.php?id=20358 --- On Thu, 10/9/08, Mike Mangino <mmangino at elevatedrails.com> wrote: From: Mike Mangino <mmangino at elevatedrails.com> Subject: Re: [Facebooker-talk] Friends.get w/out session? To: wthomas989 at yahoo.com Cc: facebooker-talk at rubyforge.org Date: Thursday, October 9, 2008, 8:09 AM The last parameter in the call to Session#post controls whether or not the signature gets included. Since it is set to false, it isn''t being included. Have you found anyone who can make this work using the API? Have you tried immediately after making an http request to your app as that user? Mike On Oct 8, 2008, at 4:27 PM, William Thomas wrote:> I didn''t think I was passing a session key to it. > > --- On Wed, 10/8/08, David Clements <digidigo at gmail.com> wrote: > From: David Clements <digidigo at gmail.com> > Subject: Re: [Facebooker-talk] Friends.get w/out session? > To: "Mike Mangino" <mmangino at elevatedrails.com> > Cc: wthomas989 at yahoo.com, facebooker-talk at rubyforge.org > Date: Wednesday, October 8, 2008, 9:43 AM > > I am not remembering the specifics.. But I believe we have seen this > problem before when we pass a session key for a method that no > longer requires it. Facebook wasn''t doing the smart thing and > ignoring it, instead they are still trying to validate it. > > Dave > > > On Wed, Oct 8, 2008 at 7:42 AM, Mike Mangino<mmangino at elevatedrails.com> > wrote: > Based on my reading of this information, it sounds like this only > works if the user has a valid session for your application. If the > user doesn''t it sounds like you will get this message. To verify > that, visit your application''s canvas page and then try this call > immediately afterwards from script/console. Does that work? > > Mike > > > On Oct 7, 2008, at 8:14 PM, William Thomas wrote: > > I would like to do it outside of a canvas. > > --- On Tue, 10/7/08, Jonathan Otto <jonathan.otto at gmail.com> wrote: > From: Jonathan Otto <jonathan.otto at gmail.com> > Subject: Re: [Facebooker-talk] Friends.get w/out session? > To: wthomas989 at yahoo.com > Cc: facebooker-talk at rubyforge.org > Date: Tuesday, October 7, 2008, 5:36 PM > > Grab it from params[:fb_sig_friends] > > On Tue, Oct 7, 2008 at 3:08 PM, William Thomas<wthomas989 at yahoo.com>> wrote: > > I''m having troubles getting an approved user''s friends list > without a > > session key... The FB documentation says I should be able to. Has > anybody > > used this successfully ? > > > > s = Facebooker::Session.new(Facebooker.api_key, > Facebooker.secret_key) > > => #<Facebooker::Session:0xb6d1caac > @secret_key="[removed]", > > @api_key="[removed]"> > >>> s.post(''facebook.friends.get'',{:uid => > ''[removed]'',false) > > FACEBOOKER: > > FACEBOOKER: method - facebook.friends.get > > FACEBOOKER: api_key - [removed] > > FACEBOOKER: uid - [removed] > > FACEBOOKER: call_id - [removed] > > FACEBOOKER: sig - [removed] > > FACEBOOKER: v - 1.0 > > FACEBOOKER: <?xml version="1.0" > encoding="UTF-8"?> > > <error_response xmlns="http://api.facebook.com/1.0/" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > xsi:schemaLocation="http://api.facebook.com/1.0/ > > http://api.facebook.com/1.0/facebook.xsd"> > > > > <error_code>102</error_code> > > <error_msg>Session key invalid or no longer > valid</error_msg> > > > > <request_args > list="true"> > > <arg> > > <key>method</key> > > <value>facebook.friends.get</value> > > </arg> > > <arg> > > <key>api_key</key> > > <value>[my api key]</value> > > </arg> > > <arg> > > <key>uid</key> > > <value>[ my UID ] </value> > > </arg> > > <arg> > > <key>call_id</key> > > <value>[a real call id]</value> > > </arg> > > <arg> > > <key>sig</key> > > <value>[a real sig]</value> > > </arg> > > <arg> > > <key>v</key> > > <value>1.0</value> > > </arg> > > </request_args> > > > </error_response> > > > > Facebooker::Session::SessionExpired: Session key invalid or no > longer > valid > > from > [removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:462:in > > `process'' > > from > [removed]/vendor/plugins/facebooker/lib/facebooker/parser.rb:15:in > > `parse'' > > from > [removed]vendor/plugins/facebooker/lib/facebooker/service.rb:21:in > > `post'' > > from > [removed]vendor/plugins/facebooker/lib/facebooker/session.rb:466:in > > `post'' > > from (irb):3 > > > > > > > > _______________________________________________ > > Facebooker-talk mailing list > > Facebooker-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > -- > Mike Mangino > http://www.elevatedrails.com > > > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk > > > _______________________________________________ > Facebooker-talk mailing list > Facebooker-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/facebooker-talk-- Mike Mangino http://www.elevatedrails.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/facebooker-talk/attachments/20081009/f9883c29/attachment-0001.html>