NAME
Facebook::Graph::Page::Feed - Add a post to a Facebook page.
VERSION
version 1.1201
SYNOPSIS
my $fb = Facebook::Graph->new;
$fb->add_page_feed
->set_page_id($page_id)
->set_message('This is a test post')
->set_backdated_time(time-3600)
->set_scheduled_publish_time(time+3600)
->set_published('false')
->set_link_uri('http://mysite.com/testpage')
->publish;
DESCRIPTION
This module gives you quick and easy access to publish posts on FB pages.
Implements publishing protocol available here: https://developers.facebook.com/docs/graph-api/reference/v2.0/page/feed/
ATTENTION: You must have the page access token to use this module. It's available in $fb-
fetch('me/accounts')>, but, you must have a user token with manage_page
permission.
More information about tokens could be found here: https://developers.facebook.com/docs/facebook-login/access-tokens
METHODS
set_page_id ( page_id )
Specify a page id to post to. This is required field and must be set before publishing.
set_message ( message )
Sets the description of the link.
message
A string of text.
set_link_uri ( uri )
Sets the URI to link to.
uri
A URI.
set_backdated_time ( time )
Set a date of your post, different from now. Just a backdate. Time should be a timestamp, no fancy formats.
set_scheduled_publish_time( time )
Set a publishing time for scheduled posts. Time should be a desired timestamp of post in future. Doesn't work with minutes from now, but works fine with hour+
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.
Facebook::Graph::Page::Feed is Copyright 2014 Alexandr Evstigneev (http://evstigneev.com) and is licensed under the same terms as Perl itself.