Bahar Çağlar asks:

How to insert a facebook like button in a confluence page?

Adapting the HTML5 version of the generated code from this reference...

In Confluence browse to Confluence Admin | Look & Feel | Custom HTML

In At the end of HEAD, paste:

var fbLike = '<div class="fb-like" data-href="' + window.location.href + '" data-send="false" data-width="450" data-show-faces="true"></div>';
var fbScript = '<div id="fb-root"></div><script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); = id; js.src = "//"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</' + 'script>';


You should now be able to "Like" and also post to Facebook:

This approach automatically embeds the "Like" button at the end of all Confluence pages and blogposts.