[ad_1] <! - Killings: NSCIA Blame CAN, Christian Elders, Political Leaders - We use cookies to ensure you the best experience on our website. If you continue to use this site, we will badume that you are satisfied. OkNoRead More (function () { function appendFbScript () { var js, id = & # 39; facebook-jssdk & # 39; fjs = document.getElementsByTagName (& # 39; script); [0]; if (document.getElementById (id)) returns; js = document.createElement (& # 39; script & # 39;); js.id = id; js.src = "http://connect.facebook.net/en_US/sdk.js#xfbml=1&appId=202913106474932&version=v2.0"; fjs.parentNode.insertBefore (js, fjs); window.fbAsyncInit = function () { FB.init ({ appId: & # 39; 202913106474932 & # 39; xfbml: true, version: & # 39; v2.0 & # 39; }); FB.Event.subscribe (& # 39; comment.create & # 39; function (comment_data) { console.log (comment_data); update_comments_count (); }); FB.Event.subscribe (& # 39; comment.remove & # 39; function (comment_data) { update_comments_count (); }); function update_comments_count (comment_data, comment_action) { jQuery.ajax ({ type: & # 39; GET & # 39; dataType: & quot; json & # 39; url: https: //theeagleonline.com.ng/wp-admin/admin-ajax.php&#39 ;, The data: { action: & # 39; clear_better_facebook_comments & # 39; post_id: & # 39; 236176 & # 39; } success: function (data) { // todo sync comments count here! the data have the accounts } error: function (i, b) { // make } } ) } } appendFbScript (); } appendFbScript (); }) (); [ad_2] Source link