Facebook::Graph::Page::Feed - Add a post to a Facebook page.
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;
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
More information about tokens could be found here: https://developers.facebook.com/docs/facebook-login/access-tokens
Specify a page id to post to. This is required field and must be set before publishing.
Sets the description of the link.
A string of text.
Sets the URI to link to.
Set a date of your post, different from now. Just a backdate. Time should be a timestamp, no fancy formats.
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+
Posts the data and returns a Facebook::Graph::Response object. The response object should contain the id:
Facebook::Graph is Copyright 2010 - 2017 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.