Subject: | Cannot execute the demo: Session_Key undefined |
Date: | Fri, 9 Nov 2007 22:41:36 -0500 |
To: | bug-www-facebook-api [...] rt.cpan.org |
From: | "Rob Giberson" <ajaxdwr [...] gmail.com> |
I tried to execute the demo from
http://search.cpan.org/src/UNOBE/WWW-Facebook-API-v0.4.7/README
and got the following error:
Token needed for call to get_session at ./test.pl line 22
and I realize that this is not a desktop app, so I comment this:
# not needed if web app (see $client->canvas->get_fb_params)
# $client->auth->get_session( $token );
and got this error:
Error during REST friends.get call:
params =
api_key:2872dcd5cab21415b0473869c84b7916
format:JSON
method:facebook.friends.get
secret:92c9d73e6dbb269c7a260c0b69e2b1d4
session_key:
v:1.0
response =
{"error_code":102,"error_msg":"Session key invalid or no longer
valid","request_args":[{"key":"api_key","value":"2872dcd5cab21415b0473869c84b7916"},{"key":"format","value":"JSON"},{"key":"method","value":"facebook.friends.get"},{"key":"secret","value":"92c9d73e6dbb269c7a260c0b69e2b1d4"},{"key":"session_key","value":""},{"key":"v","value":"1.0"},{"key":"sig","value":"5efba67acf06384f0ab1fd28a1994c28"}]}
at /usr/lib/perl5/site_perl/5.8.5/WWW/Facebook/API.pm line 204
WWW::Facebook::API::call('WWW::Facebook::API=HASH(0x7f32e0)',
'friends.get') called at
/usr/lib/perl5/site_perl/5.8.5/WWW/Facebook/API/Friends.pm line 15
WWW::Facebook::API::Friends::get('WWW::Facebook::API::Friends=HASH(0x8f9770)')
called at ./test.pl line 25