source: perl/modules/Facebook/lib/Facebook/Graph/Publish/Like.pm @ cfca761

Last change on this file since cfca761 was cfca761, checked in by Edward Z. Yang <ezyang@mit.edu>, 13 years ago
Add vanilla Facebook::Graph. Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
  • Property mode set to 100644
File size: 931 bytes
RevLine 
[cfca761]1package Facebook::Graph::Publish::Like;
2BEGIN {
3  $Facebook::Graph::Publish::Like::VERSION = '1.0300';
4}
5
6use Any::Moose;
7extends 'Facebook::Graph::Publish';
8
9use constant object_path => '/likes';
10
11no Any::Moose;
12__PACKAGE__->meta->make_immutable;
13
14
15=head1 NAME
16
17Facebook::Graph::Publish::Like - Mark a post as something you like.
18
19=head1 VERSION
20
21version 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
32Marks a post as something you like.
33
34B<ATTENTION:> You must have the C<publish_stream> privilege to use this module.
35
36=head1 METHODS
37
38
39=head2 publish ( )
40
41Posts 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
45Facebook::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.