WWW::Facebook::API::Photos is a Perl module to handle Facebook photos.
Version: 0.4.14WWW::Facebook::API::Photos is a Perl module to handle Facebook photos.
License: Perl Artistic License
Operating System: Linux
Homepage: search.cpan.org
Developed by:
SYNOPSIS
use WWW::Facebook::API;
SUBROUTINES/METHODS
add_tag( %params )
The photos.addTag method of the Facebook API:
$response = $client->photos->add_tag(
pid => 2,
tag_uid => 3,
tag_text => "me",
x => 5,
y => 6,
);
or
$response = $client->photos->add_tag( tags => $json_serialized );
tag_text is ignored if tag_uid is set.
create_album( name => $name, location => $loc, description => $descr )
The photos.createAlbum method of the Facebook API:
$response = $client->photos->create_album(
name => 'fun in the sun',
location => 'California',
description => "Summer '07",
);
get( aid => $album_id, pids => [ @photo_ids ] )
The photos.get method of the Facebook API:
$response = $client->photos->get( aid => 2, pids => [4,7,8] );
get_albums( uid => $uid, pids => [ @photo_ids ] )
The photos.getAlbums method of the Facebook API:
$response = $client->photos->get_albums( uid => 1, pids => [3,5] );
get_tags( pids => [ @photo_ids ] )
The photos.getTags method of the Facebook API:
$response = $client->photos->get_tags( pids => [4,5] );
upload( aid => $album_id, caption => $caption, data => $data )
The photos.upload method of the Facebook API:
$response = $client->photos->upload(
aid => 5,
caption => 'beach',
data => 'raw data',
);
Currently, only jpeg photos can be uploaded.