Subject: | "data" parameter name for image data clashes with call to data.setAssociation when using $client->call() |
Date: | Tue, 27 Jan 2009 18:58:00 +0200 (EET) |
To: | bug-WWW-Facebook-API [...] rt.cpan.org |
From: | Markus Seppälä <markus [...] nemesol.fi> |
Fedora 9.
perl 5.10.0
WWW::Facebook::API v 0.4.14 from CPAN.
THe data -parameter gets stripped off when calling data.setAssociation
with WWW::Facebook::API::call().
Affected methods in WWW::FaceBook::API (at least):
call()
_format_and_check_params()
The parameter could probably be named img_data or binary_data so as not to
be confused with API parameters not requiring special handling.
Code to reproduce:
my %data = ();
$datas{name} = $association_name;
$datas{obj_id1} = $obj_id1;
$datas{obj_id2} = $obj_id2;
$datas{'data'} = $data;
my $datares = $self->{api}->call( 'data.setAssociation', %datas);
Call is successful, but data-parameters is stripped off which can be seen
if rest-debugging output is enabled.
-------------------
br. markus
--
Markus Seppälä
markus@nemesol.fi
Nemesol Oy
http://nemesol.fi