Mi dispiace, ma non è quello che cercavo....
Io avevo fatto così:
Codice PHP:
function currenturl(){
$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 )); }
echo '
<a name="fb_share" share_url="'.currenturl().'">Condividi su facebook</a>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
';
Il problema, su entrambe, è che condivide l'intera pagina delle news e non un singolo post / una singola news...
Grazie comunque dell'aiuto miky_2