8

Put like facebook button on your wordpress blog

Posted June 5th, 2010 in Facebook by vangardx |


Share This Post

Salam & hello to all my dearest reader, Muralidharan Gopal asked me how I put a tiny facebook likes icon at the end of my blog entry which any logged facebook user can simply click the likes button from my blog entry if they like it and automatically appear in their facebook profile.

Firstly go to facebook developers section – like button then you will see a description and few notes about this code. Simply put all the details as you wish and leave the “url to like” blank and click Get Codes. Then a pop-up appear as follow.

<iframe src=”http://www.facebook.com/plugins/like.php?href=vangardx.net%2Fblog&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80″ scrolling=”no” frameborder=”0″ style=”border:none; overflow:hidden; width:450px; height:80px;” allowTransparency=”true”></iframe>

Then replace the bold and italic code as shown.

<iframe src=”http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(‘http://’.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']) ?>&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80″ scrolling=”no” frameborder=”0″ style=”border:none; overflow:hidden; width:450px; height:80px;” allowTransparency=”true”></iframe>

And now you can copy and paste it in single_post.php or any other places. Is it help?

Credit to : Slaven

Related Posts Plugin for WordPress, Blogger...

Share This Post


Like us on Facebook


8 Responses so far.

  1. KNizam says:

    wahhhh lama dah tak nampak ko update ni hehe :)

  2. vangardx says:

    ni baru nk update ni..tu yg nampak tu :P

  3. afham says:

    keep it up bro..

  4. PakOsu says:

    Nice blog, bro
    Salam kenal dari Jakarta.

  5. woah……impresssed….
    p/s: aku tanya melalui chating la….ko buat post plak…dem!

  6. catzer says:

    heheeheh…dah kembali berblog!!! Bagus!

  7. mazuki says:

    kembali berblog nampaknya tn….

  8. [...] this is all and if you thinking of adding like button to blog post may be this can help. Share and [...]

Leave a Reply





CommentLuv badge