Facebook-Graph
view release on metacpan or search on metacpan
lib/Facebook/Graph/Cookbook/Recipe1.pod view on Meta::CPAN
my $uri = URI->new('http://www.yourapplication.com/search');
$uri->query_form( access_token => $fb->access_token );
my $response = $request->new_response;
$response->redirect( $uri->as_string );
return $response->finalize;
};
$urlmap->map("/facebook/postback" => $postback);
It's really stupid of us to pass our access token along the URL especially since we requested C<offline_access>. We're only doing it here to demonstrate the usage of it. If you're requesting offline access, you should keep the access token locked awa...
=head2 Step 9: Let's do something already!
So now that we finally have an access token we can start making privileged requests. That works like this:
my $search = sub {
my $env = shift;
my $request = Plack::Request->new( $env );
# display a search
( run in 0.686 second using v1.01-cache-2.11-cpan-49f99fa48dc )