GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  FACEBOOK::GRAPH::PAGE::FEED (3)

.ds Aq ’

NAME

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

CONTENTS

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/>

<B>ATTENTION:B> 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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 FACEBOOK::GRAPH::PAGE::FEED (3) 2014-09-08

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.