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: simon
Licence: GPL3[1]
Categories: Markup PHP74
Users: (view? / edit)

Questions answered by this recipe

How do I embed Facebook in a PmWiki page?


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.


  • download 2022-02-22-embedfacebook.phpΔ
  • copy to the /cookbook/ directory as embedfacebook.php
  • add to config.php the line


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.


(: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


Special thanks to Petko


See discussion at EmbedFacebook-Talk?

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.