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

FreeBSD Manual Pages

  
 
  

home | help
Facebook::Graph::PubliUserEContributed Perl Facebook::Graph::Publish::Event(3)

NAME
       Facebook::Graph::Publish::Event - Add an	event.

VERSION
       version 1.0801

SYNOPSIS
	my $fb = Facebook::Graph->new;

	my $start = DateTime->new( month=>10, day=>31, year => 2010, hour=>20 );
	$fb->add_event
	   ->set_start_time($start)
	   ->set_end_time($start->clone->add(hours => 6))
	   ->set_name('Halloween Party')
	   ->publish;

DESCRIPTION
       This module gives you quick and easy access to publish events.

       ATTENTION: You must have	the "create_event" privilege to	use this
       module.

METHODS
   to (	id )
       Specify a profile id to post to.	Defaults to 'me', which	is the
       currently logged	in user.

   set_name ( name )
       Sets the	name of	the event.

       name

       A string	of text.

   set_description ( description )
       Sets the	description of the event. Tell people what's going on.

       description

       A string	of text.

   set_location	( location )
       Sets a general description of where the event will take place.

       location

       A string	of text.

   set_start_time ( datetime )
       Sets the	start of the event.

       datetime

       A DateTime object.

   set_end_time	( datetime )
       Sets the	end of the event.

       datetime

       A DateTime object.

   publish ( )
       Posts the data and returns a Facebook::Graph::Response object. The
       response	object should contain the id:

	{"id":"1647395831_130068550371568"}

TODO
       Add venue and privacy as	described on
       <http://developers.facebook.com/docs/reference/api/event>.

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-08Facebook::Graph::Publish::Event(3)

NAME | VERSION | SYNOPSIS | DESCRIPTION | METHODS | TODO | LEGAL

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

home | help