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::Authorize(3) User Contributed Perl Documentation Facebook::Graph::Authorize(3)

Facebook::Graph::Authorize - Authorizing an app with 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 $uri = $fb->authorize
    ->extend_permissions(qw( email publish_stream ))
    ->set_display('popup')
    ->uri_as_string;

Get an authorization code from Facebook so that you can request an access token to make privileged requests. The result of this package is to give you a URI to redirect a user to Facebook so they can log in, and approve whatever permissions you are requesting.

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.
The URI that Facebook should post your authorization code back to.

Ask for extra permissions for your app. By default, if you do not request extended permissions your app will have access to only general information that any Facebook user would have. Returns a reference to self for method chaining.

permissions

An array of permissions. See <http://developers.facebook.com/docs/authentication/permissions> for more information about what's available.

Returns a URI string to redirect the user back to Facebook.

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.