Plugin Name: Facebook Share - Comments Plugin Description: After posting a comment your commenters can click to have the option to post their comment to Facebook. This will use Facebook Connect if that is enabled for your site or a Facebook Share link if it is not. Plugin URL: http://facebook.com Author: Jon Author URL: https://www.intensedebate.com/people/jon Date Added: May 7th, 2010 Code: IDC.ui = { "add_message": function( comment_id, html_msg ) { var msg_div = IDC.c_object( 'div', { 'className':'idc-message', 'id': 'idc-comment-msg-div-' + comment_id } ); msg_div.innerHTML = 'Close Message
Comment posted.
' + html_msg + '
'; IDC.$( 'IDComment-CommentText' + comment_id ).insertBefore( msg_div, IDC.$( 'IDComment-CommentText' + comment_id ).firstChild ); }, "close_message": function( comment_id ) { IDC.$( 'idc-comment-msg-div-' + comment_id ).parentNode.removeChild( IDC.$( 'idc-comment-msg-div-' + comment_id ) ); }, "add_post_comment_message" : function ( comment_id ) { IDC.ui.last_comment_html = IDC.$( 'IDComment-CommentText' + comment_id ).innerHTML; if( window.FB !== undefined && FB.Connect ) { IDC.ui.add_message( comment_id, ' or Close Message' ); } else { IDC.ui.add_message( comment_id, ' or Close Message' ); } }, "fb_wrapper" : function ( comment_id ) { FB.Connect.streamPublish( "I just commented on " + document.title + ": \n" + IDC.ui.last_comment_html.replace(/^\s*/, "").replace(/\s*$/, "").replace(/