Recent Changes - Search:

add Cookbook page

hide

Cookbook


hide

Topics


show

Changed

Visitor's book Site map pmwiki-2.3.32

Embed Facebook

  • delete this comment
  • change skiwi
Summary: Use Facebook API to embed Facebook content into PmWiki
Version: 2022-02-22
Prerequisites: PmWiki 2.2.132 (PHP 7.4 compatible)
Status: Beta
Maintainer: skiwi
Licence: GPL3[1]
Categories: Markup PHP74
Users: (view? / edit)

Questions answered by this recipe

How do I embed Facebook in a PmWiki page?

Description

This recipe generates the markup to embed the Facebook API into a PmWIki wiki.

The Facebook API supports display of Facebook timeline, events, or messages.

Installation

  • download 2022-02-22-embedfacebook.php
  • copy to the /cookbook/ directory as embedfacebook.php
  • add to config.php the line
    include_once($FarmD/cookbook/embedfacebook.php);

Usage

Place the directive, as described below, in your PmWiki page.

The recipe provides a page variable {$EmbedFacebookVersion} which contains the current version, and page variable $EmbedFacebook for a (:if enabled EmbedFacebook:) recipe installation check.

Configuration

(:embedfacebook name=facebookpage

tabs=timeline,events,messages Tabs to render, use a comma-separated list to add multiple tabs, i.e. timeline,events. Defaults to timeline
width=340 pixels, min 180, max 500, default 340
height=500 pixels, min 70, default 500
header=false show large header, default false
cover=false show cover photo, default false
:)

Parameters are case-insensitive.

config.php settings

You can change the following in config.php. For example

$EmbedFacebookDebug = true; # results may vary

Change log / Release notes

2022-02-22 Initial version

See also

Contributors

Special thanks to Petko

Comments

See discussion at EmbedFacebook-Talk?

tahi Page last modified on 2022 Feb 23 20:16

Edit - History - Recent Changes - WikiHelp - Search - email page as link -> mailto:?Subject="KiwiWiki: Embed Facebook"&Body=