Facebook::Graph::Publish::Event - Add an event.
version 1.0400
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;
This module gives you quick and easy access to publish events.
ATTENTION: You must have the create_event privilege to use this module.
create_event
Specify a profile id to post to. Defaults to 'me', which is the currently logged in user.
Sets the name of the event.
A string of text.
Sets the description of the event. Tell people what's going on.
Sets a general description of where the event will take place.
Sets the start of the event.
A DateTime object.
Sets the end of the event.
Posts the data and returns a Facebook::Graph::Response object. The response object should contain the id:
{"id":"1647395831_130068550371568"}
Add venue and privacy as described on http://developers.facebook.com/docs/reference/api/event.
Facebook::Graph is Copyright 2010 Plain Black Corporation (http://www.plainblack.com) and is licensed under the same terms as Perl itself.
To install Facebook::Graph, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Facebook::Graph
CPAN shell
perl -MCPAN -e shell install Facebook::Graph
For more information on module installation, please visit the detailed CPAN module installation guide.