WWW::F...::Feed(3pm)

πŸ“¦
version 0.4.18 Β· 2 versions
  • 0.4.18 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 0.4.18 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

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 the WWW::Facebook::API base 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 the feed.publishUserAction method of the Facebook API. heads up: template_bundle_id and template_data are 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 ) β€” the feed.registerTemplateBundle method of the Facebook API. one_line_story_templates is 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 ) β€” the feed.deactivateTemplateBundleById method of the Facebook API. template_bundle_id is 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 combined feed.getRegisteredTemplateBundleByID and feed.getRegisteredTemplateBundles methods of the Facebook API. here's the trick: if the template_bundle_id parameter 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 ) β€” the feed.publishTemplatizedAction method of the Facebook API. required squad: actor_id and title_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. πŸ’œ


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