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
Facebook::Graph::Page::Feed(3) User Contributed Perl Documentation Facebook::Graph::Page::Feed(3)

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

version 1.0801

 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 "manage_page" permission.

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.

message

A string of text.

Sets the URI to link to.

uri

A URI.

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:

 {"id":"1647395831_130068550371568"}

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.

2014-09-08 perl v5.32.1

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

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