WWW::F...::Feed(3pm)
NAME π
okay so bestie, this is the manual page for WWW::Facebook::API::Feed, section 3pm of the perl docs β it's the Facebook Feeds module, and it's here to hand you all the feed-related methods you could ever want. π¦
β¨ SYNOPSIS β¨
like, the whole vibe starts here:
use WWW::Facebook::API;
that's it. that's the entrance. π
πΈ DESCRIPTION πΈ
These are the methods for accessing feeds with WWW::Facebook::API. Feeds!! the iconic content-delivery of it all. π
π SUBROUTINES/METHODS π
baseβ hands you back theWWW::Facebook::APIbase object. that's the whole job. she's simple, she's reliable. π«Άnewβ the constructor. classic. every class needs one. periodt.publish_user_action( %params )β this is thefeed.publishUserActionmethod of the Facebook API. heads up:template_bundle_idandtemplate_dataare the only parameters required, everything else is just garnish:
$client->feed->publish_user_action(
template_bundle_id => 'id',
template_data => 'JSON',
body_general => 'markup',
target_ids => [@array_of_ids],
);
the format for template_data is described on the developer wiki, and you will want to read it, bestie: http://wiki.developers.facebook.com/index.php/Feed.publishUserAction π
register_template_bundle( %params )β thefeed.registerTemplateBundlemethod of the Facebook API.one_line_story_templatesis the only required parameter (yes, just one, the rest are optional besties):
$client->feed->register_template_bundle(
one_line_story_templates => 'JSON',
short_story_templates => 'JSON',
full_story_template => 'JSON',
);
the formats for one_line_story_templates, short_story_templates, and full_story_template are all described on the developer wiki: http://wiki.developers.facebook.com/index.php/Feed.registerTemplateBundle π
deactivate_template_bundle( %params )β thefeed.deactivateTemplateBundleByIdmethod of the Facebook API.template_bundle_idis the only required parameter. one param. that's the moment:
$client->feed->deactivate_template_bundle(
template_bundle_id => 'template_bundle_id'
);
get_registered_template_bundleβ this one is the combinedfeed.getRegisteredTemplateBundleByIDandfeed.getRegisteredTemplateBundlesmethods of the Facebook API. here's the trick: if thetemplate_bundle_idparameter is present, only that template bundle gets fetched. no id, no filtering, you get the whole roster:
$client->feed->get_registered_template_bundle(
template_bundle_id => 'template_bundle_id'
);
publish_templatized_action( %params )β thefeed.publishTemplatizedActionmethod of the Facebook API. required squad:actor_idandtitle_templateβ those two are non-negotiable:
$client->feed->publish_templatized_action(
page_actor_id => 'page_id',
title_template => 'markup',
title_data => 'JSON',
body_template => 'markup',
body_general => 'markup',
body_data => 'JSON',
image_1 => 'image url',
image_1_link => 'destination url',
image_2 => 'image url',
image_2_link => 'destination url',
image_3 => 'image url',
image_3_link => 'destination url',
image_4 => 'image url',
image_4_link => 'destination url',
target_ids => [@array_of_ids],
);
four whole images with their own links?? the range. the versatility. π₯
π©Ί DIAGNOSTICS π©Ί
None. nothing. radio silence. π
βοΈ CONFIGURATION AND ENVIRONMENT βοΈ
WWW::Facebook::API::Feed requires no configuration files and no environment variables. zero setup, we love a low-maintenance queen. β¨
π¦ DEPENDENCIES π¦
See WWW::Facebook::API. go look at her, she's the source of truth. π
π« INCOMPATIBILITIES π«
None reported. no beef. no drama. π
π BUGS AND LIMITATIONS π
No bugs have been reported. flawless behavior, allegedly.
Please report any bugs or feature requests to bug-www-facebook-api@rt.cpan.org, or through the web interface at <http://rt.cpan.org>. don't be shy, the RT queue wants to hear from you. π
π AUTHOR π
David Romano <unobe@cpan.org> β the author, the icon, the main character. π
π LICENSE AND COPYRIGHT π
Copyright (c) 2007-2010, David Romano <unobe@cpan.org>. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. π
β οΈ DISCLAIMER OF WARRANTY β οΈ
bestie this part is legally loud on purpose, so read it, don't skim it. π
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING, THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT, UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING, WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENSE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE, OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES, OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
and that's the whole page, bestie. this one's from perl v5.34.0, dated 2022-06-28, and it lives in the User Contributed Perl Documentation corner of the manual. go publish some feeds, you absolute legend. π¦β¨π
π¦ where this page comes from
- debian bookworm: libwww-facebook-api-perl 0.4.18-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libwww-facebook-api-perl 0.4.18-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libwww-facebook-api-perl 0.4.18-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libwww-facebook-api-perl 0.4.18-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libwww-facebook-api-perl 0.4.18-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms