Facebook::Graph::Publish::Checkin - Publish a location checkin.
version 1.0801
my $fb = Facebook::Graph->new; $fb->add_checkin ->set_place(222047056390) ->publish; my $response = $fb->add_checkin ->set_place(222047056390) ->set_message('Mmm...pizza.') ->set_tags([qw(sarah.bownds 1647395831)]) ->set_latitude() ->set_longitude() ->publish;
This module gives you quick and easy access to publish user checkins to locations.
ATTENTION: You must have the user_checkins privilege to use this module, and friends_checkins to get friends checkins.
user_checkins
friends_checkins
Specify a profile id to post to. Defaults to 'me', which is the currently logged in user.
Sets the text to post to the wall.
A string of text.
Sets the id of the place you are checking in to.
The id of a page for a place. For example 222047056390 is the id of Pete's Pizza and Pub in Milwaukee, WI.
222047056390
Sets the coords of your location. See also set_longitude
set_longitude
The decimal latitude of your current location.
Sets the coords of your location. See also set_latitude
set_latitude
The decimal longitude of your current location.
Sets the list of users at the location.
An array reference of Facebook user ids that are currently at this location with you.
Posts the data and returns a Facebook::Graph::Response object. The response object should contain the id:
{"id":"1647395831_130068550371568"}
Facebook::Graph is Copyright 2010 - 2012 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.