2
1
0

I am trying to add facebok like putton to my confluence page.

Facebook developers gives the code:

http://developers.facebook.com/docs/reference/plugins/like/

I tried to add html using html-include macro, but it doesn't work :S

I want to add social links like atlassian blog does.

How can I do this? Please help.

Thanks for answers.

    CommentAdd your comment...

    3 answers

    1.  
      2
      1
      0

      How to add a facebook like button in a Confluence page?

      1. You should create the code from the facebook developers' page for the page that you want to like.

      http://developers.facebook.com/docs/reference/plugins/like/

      2. Copy the generated code.
      3. Create a confluence page or open editing for an existing one. Add a html-include macro.
      4. Paste the copied code into it, and save the page.




      5. Here it is!
      Similiarly, you can add twitter follow button.

      https://twitter.com/about/resources/buttons

        CommentAdd your comment...
      1.  
        4
        3
        2
          CommentAdd your comment...
        1.  
          3
          2
          1

          See this reference:

          http://developers.facebook.com/docs/reference/plugins/like/

          Adapting the HTML5 version of the generated code...

          Browse to Confluence Admin | Look & Feel | Custom HTML

          In At the end of HEAD, paste:

          You should now be able to like and also post to FB:

          1. Bahar çağlar

            This inserts to header, but I want to add wherever I want to use it.

          2. David Simpson

            Yes, that looks kinda weird. I've made a minor edit to the script and it's working good for me on Confluence 4.2 using Google Chrome and Safari on a OSX Lion.

            This approach may be better than the answer by @Bahar Çağlar because it automatically will embed the like button on all Confluence pages/blogposts.

          CommentAdd your comment...