Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Facebook::Graph::BatchUsereContributed Perl DFacebook::Graph::BatchRequests(3)

NAME
       Facebook::Graph::BatchRequests -	Batch Requests

VERSION
       version 1.0801

SYNOPSIS
	   # set access_token, required
	   my $fb = Facebook::Graph->new(access_token => $access_token);
	   my @batches = $fb->batch_requests
	       ->add_request('sarahbownds')
	       ->add_request({"method" => "POST", "relative_url" => 'me/feed', body => "message=Test update"})
	       ->request;

	   foreach my $batch (@batches)	{
	       print $batch->{code} . $batch->{body} . Dumper(\$batch->{data}, \$batch->{headers}) . "\n";
	   }

DESCRIPTION
       send batch requests to save time:
       <http://developers.facebook.com/docs/reference/api/batch/>

METHODS
   add_request
       add request, if not HASHREF, will default method	as GET and arg as
       relative_url

	   $batch_requests->add_request('sarahbownds');	# as { method => 'GET',	relative_url =>	'sarahbownds' }
	   $batch_requests->add_request({"method" => "POST", "relative_url" => 'me/feed', body => "message=Test	update"})

   request
	   $batch_requests->request;
	   $batch_requests->request(@requests);

       Fire the	request	and return decoded @batches data

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

perl v5.32.0			  2014-09-08 Facebook::Graph::BatchRequests(3)

NAME | VERSION | SYNOPSIS | DESCRIPTION | METHODS | LEGAL

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Facebook::Graph::BatchRequests&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help