how to share each article to facebook
<p>I need to keep facebook like and share for each individual articles posted by various users. Once i logged in to the site and give share to the particular article it should get shared in facebook as well as it should show the count near to the share button of that individual article.....below is my coding please help me to get rid of this problem.Thanks a lot!</p>

<pre><code>function selfURL() {
    $s = empty($_SERVER["HTTPS"]) ? '' : ($_SERVER["HTTPS"] == "on") ? "s" : ""; 
    $protocol = strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; 
    $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]);    
    return 

$protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI'];
} 

function strleft($s1, $s2) { 
    return substr($s1, 0, strpos($s1, $s2)); 
}

&lt;div id="fb-root"&gt;
&lt;/div&gt;

&lt;script src="http://connect.facebook.net/en_US/all.js#appId=204703199589477&amp;amp;xfbml=1"&gt;
&lt;/script&gt;
&lt;fb:like href="&lt;?php print(selfURL()); ?&gt;" send="false" width="90" show_faces="false" action="like" font="" layout="button_count"&gt;
&lt;/fb:like&gt;
&lt;/div&gt;
</code></pre>
