CC: | jeffa [...] shutterstock.com |
Subject: | Possible bug -- but could be my misunderstanding |
Greetings!
I am trying to use WWW::Facebook::API and i cannot seem to even get to
first base with it. Here is my sample code:
============================================
use strict;
use warnings;
use WWW::Facebook::API;
my $api = WWW::Facebook::API->new(
desktop => 1,
app_id => 'yes this is my correct app id',
api_key => 'yes this is my correct api key',
secret => 'yes this is my correct secret key',
);
$api->auth->get_session( $api->auth->create_token );
============================================
I have verified my various keys and they are correct, however when this
code is run Facebook returns the following error:
============================================
Error during REST auth.getSession call:
params =
api_key:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
auth_token:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
call_id:1236621974.82341
format:JSON
method:facebook.auth.getSession
v:1.0
response =
{"error_code":100,"error_msg":"Invalid
parameter","request_args":[{"key":"api_key","value":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"},{"key":"auth_token","value":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"},{"key":"call_id","value":"1236621974.82341"},{"key":"format","value":"JSON"},{"key":"method","value":"facebook.auth.getSession"},{"key":"v","value":"1.0"},{"key":"sig","value":"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}]}
at /usr/lib/perl5/site_perl/5.8.8/WWW/Facebook/API.pm line 212
============================================
I am stumped and perplexed. The only clue that Facebook discloses is
that there is an "Invalid parameter" ... which could be anything. My
inclination is to believe that they changed their API and
WWW::Facebook::API is not up to date, but it seems more likely that i am
not using the module correctly. Some more examples in the docs would be
helpful. Like maybe a cookbook. :)
Any help you can offer would be splendid. Thanks in advance.