GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Facebook::Graph::AccessToken(3) User Contributed Perl Documentation Facebook::Graph::AccessToken(3)

Facebook::Graph::AccessToken - Acquire an access token from Facebook.

version 1.1205

 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.

A hash or hashref of parameters to pass to the constructor.
The application id that you get from Facebook after registering (<http://developers.facebook.com/setup/>) your application on their site. Required if you'll be calling the "request_access_token", "convert_sessions", or "authorize" methods.
An authorization code string that you should have gotten by going through the "authorize" process.
The URI that Facebook should post your authorization code back to. Required if you'll be calling the "request_access_token" or "authorize" methods.
The application secret that you get from Facebook after registering your application. Required if you'll be calling the "request_access_token" or "convert_sessions" methods.

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.

Checks for either access_token or code and dies if has neither.

Facebook::Graph is Copyright 2010 - 2017 Plain Black Corporation (<http://www.plainblack.com>) and is licensed under the same terms as Perl itself.

2019-01-21 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.