WWW::Facebook::API is a Facebook API implementation.
SYNOPSIS
use WWW::Facebook::API;
my $client = WWW::Facebook::API->new(
desktop => 1,
throw_errors => 1,
parse => 1,
);
print "Enter your public API key: ";
chomp( my $val = < STDIN > );
$client->api_key($val);
print "Enter your API secret: ";
chomp($val = < STDIN > );
$client->secret($val);
print "Enter your e-mail address: ";
chomp(my $email = < STDIN > );
$client->secret($val);
print "Enter your password: ";
chomp(my $pass = < STDIN > );
my $token = $client->auth->login( email => $email, pass => $pass );
$client->auth->get_session( $token );
use Data::Dumper;
my $friends_perl = $client->friends->get;
print Dumper $friends_perl;
my $notifications_perl = $client->notifications->get;
print Dumper $notifications_perl;
# Current user's quotes
my $quotes_perl = $client->users->get_info(
uids => $friends_perl,
fields => ['quotes']
);
print Dumper $quotes_perl;
$client->auth->logout;
A Perl implementation of the Facebook API, working off of the canonical Java and PHP implementations. By default it uses JSON::Any to parse the response returned by Facebook's server. There is an option to return the raw response in either XML or JSON (See the parse method below).
Product's homepage
Requirements:
· Perl