JT Smith > Facebook-Graph-1.0500 > Facebook::Graph::Publish::Checkin

Download:
Facebook-Graph-1.0500.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 1.0500   Source   Latest Release: Facebook-Graph-1.0700

NAME ^

Facebook::Graph::Publish::Checkin - Publish a location checkin.

VERSION ^

version 1.0500

SYNOPSIS ^

 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;

DESCRIPTION ^

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.

METHODS ^

to ( id )

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

set_message ( message )

Sets the text to post to the wall.

message

A string of text.

set_place ( id )

Sets the id of the place you are checking in to.

id

The id of a page for a place. For example 222047056390 is the id of Pete's Pizza and Pub in Milwaukee, WI.

set_latitude ( coord )

Sets sets the coords of your location. See also set_longitude

coord

The decimal latitude of your current location.

set_longitude ( coord )

Sets sets the coords of your location. See also set_latitude

coord

The decimal longitude of your current location.

set_tags ( list )

Sets the list of users at the location.

list

An array reference of Facebook user ids that are currently at this location with you.

publish ( )

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

 {"id":"1647395831_130068550371568"}

LEGAL ^

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

syntax highlighting: