Recent Changes - Search:

add Cookbook page

hide

Cookbook


hide

Topics


show

Changed

Visitor's book Site map pmwiki-2.2.139

Embed Facebook

Summary: Use Facebook API to embed Facebook conent PmWiki
Version: 2020-10-20
Prerequisites: PmWiki 2.2.130 (PHP 7.4 compatible)
Status: Production
Maintainer: skiwi
Licence: GPL3[1]
Categories: Images Includes 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 Facebook The recipe uses the Facebook API to embed Facebook in a PmWiki wiki.

Installation

  • download 2020-10-20-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 type=type

content=detail
id=identifier
height=pixels width=pixels float=left|right clear=both|right|left:)
  • clear= -- clear image to left, right, or both

Parameters are case-insensitive.

config.php settings

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

$FacebookAPIKey = 10; # key obtained from Facebook
$EmbedFacebookDebug = true; # results may vary

Change log / Release notes

2020-10-20 Initial version

See also

Contributors

Special thanks to

Comments

See discussion at EmbedFacebook-Talk?

Page last modified on 2021 Oct 16 01:48

Edit - History - Recent Changes - WikiHelp - Search - email page as link -> mailto:?Subject=KiwiWiki: Embed Facebook&Body=From KiwiWiki: Embed Facebook (//kiwiwiki [period] nz/pmwiki/pmwiki [period] php/Cookbook/EmbedFacebook) - Use Facebook API to embed Facebook conent PmWiki