• Add a Facebook like button to your website

    Add a Facebook like button to your website. This will make your website user friendly and SEO friendly.
    Now, lets get started.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    
    <!--?php 
    $currentpageURL=curPageURL();
    function curPageURL() {
    $pageURL = 'http';
    if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
    $pageURL .= "://";
    if ($_SERVER["SERVER_PORT"] != "80") {
    $pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
    } else {
    $pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
    }
    return $pageURL;
    }
    ?-->
    <iframe style="border: none; overflow: hidden; width: 550px; height: 80px;" src="http://www.facebook.com/plugins/like.php?href=&lt;?php echo $currentpageURL;?&gt;&amp;layout=standard&amp;show_faces=true&amp;width=550&amp;action=like&amp;font&amp;colorscheme=light&amp;height=80" height="240" width="320" frameborder="0" scrolling="no"></iframe>

    Hope you enjoyed!

Comments on this post

Leave a Reply

  • Security Code :


    × four = 24