FaceBook Share

[php]
/*
Plugin Name: Very Simple FaceBook Share
Plugin URI: http://www.paulOr.net/facebook-share/
Description: A very simple shortcode plugin which will allow you to put a facebook sharecode on any page or post via [fbshare] – you can also style it any way with [fbshare style=”color:#ffffff; text-decoration: underline;”]
Author: Paul Fraser
Version: 1
Author URI: http://www.paulOr.net
*/
function FBShare($params, $content = null) {
extract(shortcode_atts(array(
‘style’ => ”
), $params));
return ‘<a ‘.($style == ” ? ” : ” style=\”$style\””).’ name=”fb_share”></a><script src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share” type=”text/javascript”></script>’;
}
add_shortcode(‘fbshare’,’FBShare’);

[/php]

Very simple facebook share plugin which allows you to just add a shortcode to a page or post & style it via [fbshare style=”blah: blah;”]

Download: FBShare.php