Facebook Like-Button

I looked for a realy good Facebook like-button plugin for Dokuwiki but there were only Facebook plugin and fbsp plugin. The first one only creates a big fat like-box and the second one is too simple. So I created a plugin on my own. You can find this plugin on Github.

Features

  1. You can fully customize the appearance.
  2. Easy usage.
  3. Usage of FBML.
  4. Text-Editor button.

Plugin configuration is available in following languages: German, English

Icon of the text editor button by Yusuke Kamiyamane.

Requirements

To use this Plugin you need the following system:

  • PHP >= 5.1.2
  • Dokuwiki >= 2009-02-14b

Download / Installation

To install this plugin go to Admin → Manage plugins and enter in the following URL:

http://downloads.echtzeitraum.de/plugin/dokuwiki/facebooklike.zip

In Admin → Configuration settings you can change various settings. You can modify and redistribute it under the terms of the GPL Version 3.

Usage

Adding the following code will insert a default Facebook like-button (with the default settings) on the current page. You can modify the default settings on the wiki configuration page ( Admin → Configuration settings ).

{{like>}}

If you want you can modify the default settings by adding one or more parameters.

{{like>url=http://example.com/|colorscheme=dark}}

Supported parameters:

Parameter Value Description
url String Page that should be liked. Must be a valid address (e.g. http://example.com/).
layout String Determines the size and amount of social context next to the button. (standard/button_count/box_count)
show_faces Boolean Display faces of friends who likes the specified url. Effects layout „standard“ only!
width Integer Width of the „reserved“ area.
action String The verb to display in the button. (like/recommend)
font String The font of the button. (arial/verdana/segoe ui/tahoma/lucida grande/trebuchet ms)
colorscheme String Colors of the buttons.(light/dark)

Examples

You can try out different combinations on the official Facebook developer page.

standard button_count box_count