Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    WWW::Facebook::API 0.4.18

    Download button

    No screenshots available
    Downloads: 621  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.1/5)
    7 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    David Romano | More programs
    Perl Artistic License / FREE
    November 26th, 2007, 15:37 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    WWW::Facebook::API description

    A Facebook API implementation.

    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

      


    TAGS:

    Facebook API | Perl implementation | Perl module | WWW | Facebook | API

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM