|
Last change
on this file since cfca761 was
cfca761,
checked in by Edward Z. Yang <ezyang@mit.edu>, 14 years ago
|
|
Add vanilla Facebook::Graph.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
|
-
Property mode set to
100644
|
|
File size:
931 bytes
|
| Line | |
|---|
| 1 | package Facebook::Graph::Publish::Like; |
|---|
| 2 | BEGIN { |
|---|
| 3 | $Facebook::Graph::Publish::Like::VERSION = '1.0300'; |
|---|
| 4 | } |
|---|
| 5 | |
|---|
| 6 | use Any::Moose; |
|---|
| 7 | extends 'Facebook::Graph::Publish'; |
|---|
| 8 | |
|---|
| 9 | use constant object_path => '/likes'; |
|---|
| 10 | |
|---|
| 11 | no Any::Moose; |
|---|
| 12 | __PACKAGE__->meta->make_immutable; |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | =head1 NAME |
|---|
| 16 | |
|---|
| 17 | Facebook::Graph::Publish::Like - Mark a post as something you like. |
|---|
| 18 | |
|---|
| 19 | =head1 VERSION |
|---|
| 20 | |
|---|
| 21 | version 1.0300 |
|---|
| 22 | |
|---|
| 23 | =head1 SYNOPSIS |
|---|
| 24 | |
|---|
| 25 | my $fb = Facebook::Graph->new; |
|---|
| 26 | |
|---|
| 27 | $fb->add_like($post_id) |
|---|
| 28 | ->publish; |
|---|
| 29 | |
|---|
| 30 | =head1 DESCRIPTION |
|---|
| 31 | |
|---|
| 32 | Marks a post as something you like. |
|---|
| 33 | |
|---|
| 34 | B<ATTENTION:> You must have the C<publish_stream> privilege to use this module. |
|---|
| 35 | |
|---|
| 36 | =head1 METHODS |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | =head2 publish ( ) |
|---|
| 40 | |
|---|
| 41 | Posts the data and returns a L<Facebook::Graph::Response> object. The response object should contain a string of either 'true' or 'false'. |
|---|
| 42 | |
|---|
| 43 | =head1 LEGAL |
|---|
| 44 | |
|---|
| 45 | Facebook::Graph is Copyright 2010 Plain Black Corporation (L<http://www.plainblack.com>) and is licensed under the same terms as Perl itself. |
|---|
| 46 | |
|---|
| 47 | =cut |
|---|
Note: See
TracBrowser
for help on using the repository browser.