Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Facebook::Graph::Page:UserdContributed Perl DocuFacebook::Graph::Page::Feed(3)

NAME
       Facebook::Graph::Page::Feed - Add a post	to a Facebook page.

VERSION
       version 1.0801

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.

perl v5.32.0			  2014-09-08	Facebook::Graph::Page::Feed(3)

NAME | VERSION | SYNOPSIS | DESCRIPTION | METHODS | LEGAL

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Facebook::Graph::Page::Feed&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help