encoder64 just-launced

Event Attending Users Exporter

Who's online

We have 3 guests online

How to make Facebook comments and Like button on Joomla site (the quick and easy way)

Rate this item
(2 votes)

th facebookOk, so you want these popular Facebook Like button and Comments box on your Joomla webpage, right? Here are easy and simple steps to achieve that.

 

 You will need:

  • Joomla powered web site (you own that)
  • Jumi package or mod_customcode
  • Comments module and Like button sample code from Facebook developer page
  • 5 minutes of your free time.

Steps:

  • 1. Install Jumi package or Custom code module on your website. These two modules both allow you to put PHP code in modules.
  • 2. Go to Facebook comments module page or Facebook Like buttom module page, click "GET CODE". Copy sample code.
    You will get something like that for Like button:
    <div id='fb-root'></div><script src='http://connect.facebook.net/
    en_US/all.js#appId=241285629235863&amp;xfbml=1'></script>
    <fb:like href='example.com' send='true' width='450'
    show_faces='true' action='like' font=''></fb:like>
    ...or code will look like this for Comments module:
     <div id='fb-root'></div><script src='http://connect.facebook.net/
    en_US/all.js#xfbml=1'></script><fb:comments href='example.com'
    num_posts='2' width='500'></fb:comments>
  • 3. Paste that code to Jumi or Custom code module content.

    facebook like
  • 4. Insert following code between quotes in href='' part of Facebook code.
    <?php echo "http://www.yourdomain.com".$_SERVER['REQUEST_URI']; ?>
  • 5. Publish Jumi or Custom code module at the bottom position of your article and you are done!

Of course here is just a simple example how easy it can be done. You should also implement Open graph protocol for Facebook modules to be happy.
More in this category: « 50 Top Joomla! Extensions

1 Comment

  • Comment Link TYLER25Jodi Thursday, 05 January 2012 12:08 posted by TYLER25Jodi

    One admits that our life seems to be very expensive, nevertheless some people require cash for various issues and not every person earns big sums cash. Therefore to receive some mortgage loans and just credit loan would be a right way out.

Leave a comment

Make sure you enter the (*) required information where indicated.
Basic HTML code is allowed.