Facebook - Facebook SDK in Perl
version 0.102
use Facebook; my $fb = Facebook->new( app_id => $app_id, api_key => $api_key, secret => $secret, ); use Facebook::Signed; my $logged_in_fb = Facebook->new( signed => Facebook::Signed->new( secret => $secret, facebook_data => $facebook_cookie_for_your_application_as_text, ), app_id => $app_id, secret => $secret, api_key => $api_key, ); # If you dont provide secret, it will try to fetch it from signed values my $shorter_logged_in_fb = Facebook->new( signed => Facebook::Signed->new( secret => $secret, facebook_data => $facebook_cookie_for_your_application_as_text, ), app_id => $app_id, api_key => $api_key, ); # You need to have Facebook::Graph installed so that this works my $gettys_facebook_profile = $fb->graph->query ->find(100001153174797) ->include_metadata ->request ->as_hashref;
If you are new to Facebook application development in Perl please read Facebook::Manual!
This package reflects an instance for your application. Depending on what API of it you use, you require to install the needed distributions or provide alternative packages yourself.
Arguments: None
Return value: Object
If you want to use this, you need to install Facebook::Graph!
Returns an instance of the graph_class (by default this is Facebook::Graph)
If you want to use this, you need to install WWW::Facebook::API!
Returns an instance of the rest_class (by default this is WWW::Facebook::API)
Torsten Raudssus <torsten@raudssus.de> http://www.raudssus.de/
Frank Sheiness <syndesis@gmail.com>
This software is copyright (c) 2011 by Raudssus Social Software & Facebook Distribution Authors.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Facebook, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Facebook
CPAN shell
perl -MCPAN -e shell install Facebook
For more information on module installation, please visit the detailed CPAN module installation guide.