Facebook::Graph::AccessToken - Acquire an access token from Facebook.
version 1.0500
my $fb = Facebook::Graph->new( secret => $facebook_application_secret, app_id => $facebook_application_id, postback => 'https://www.yourapplication.com/facebook/postback', ); my $token_response_object = $fb->request_access_token($code_from_authorize_postback); my $token_string = $token_response_object->token; my $token_expires_epoch = $token_response_object->expires;
Allows you to request an access token from Facebook so you can make privileged requests on the Graph API.
Returns the URI that will be called to fetch the token as a string. Mostly useful for debugging and testing.
Makes a request to Facebook to fetch an access token. Returns a Facebook::Graph::AccessToken::Response object.
Facebook::Graph is Copyright 2010 - 2012 Plain Black Corporation (http://www.plainblack.com) and is licensed under the same terms as Perl itself.
To install Facebook::Graph, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Facebook::Graph
CPAN shell
perl -MCPAN -e shell install Facebook::Graph
For more information on module installation, please visit the detailed CPAN module installation guide.