Summary: Talk page for FacebookLikeButton.
Maintainer: Ville Takanen
Users: +4 (View / Edit)

This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.

Does this recipe embed code (and possibly cookies) from Facebook's site into your pages?

If someone simply visits a page with this recipe enabled (without clicking) does Facebook know?
Is some sort of script being downloaded, from Facebook, into the reader's computer, when the reader (or editor) just visits the page?
nikos? October 05, 2014, at 04:36 PM

Yes, it does (reply to the 3 questions). --Petko October 05, 2014, at 05:23 PM

2012-09-28 - Zeist, Netherlands It does not work anymore

The Like button does not work anymore. The problem is with Ajax. I have changed this by Javascript and now it works fine. Mail me when you want this version. E-mail: hanswortel@planet.nl

2011/10/11 - SaintMagoo: Here is an alternative - It just uses the standard JS stuff - No footer required & marginally faster -

function DspFBLike($pn, $opts) {

  global $ScriptUrl;
  $args = ParseArgs($opts);

  if (empty($args['name'])){
	return Keep('<a name="fb_share" type="button" share_url="http://Soft9000.com">Share on Facebook</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>');
  else {
	//Just name given -> make pagename from the title
	$fbhref=$ScriptUrl."?n=".MakePageName($pn ,$args['name']);
	return Keep('<center><a name="fb_share" type="button" share_url="'.$fbhref.'">Share on Facebook</a><script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script></center>');




Any way to include this in the top-header? -Tried just putting (:fblike:) into the pmwiki.templ, but that obviously was not the way to go..?

Have you tried the <!--markup:...--> Skin Templates directive? Jonathan Blake April 10, 2011, at 11:21 AM

Works perfect. Using at the baldwinsoftware wiki. tonybaldwin February 20, 2011, at 09:58 PM

I've locally added the ability to specify the width and font:

(:fblike width=450 font=arial:)

What's the protocol for submitting diffs? Jonathan Blake April 10, 2011, at 11:21 AM

Is there any possibility to change the language of the button's text?

- found it on my own. ~Johnny

Talk page for the FacebookLikeButton recipe (users).