Home Uncategorized Take a break from your adulthood with your favorite childhood snacks

Take a break from your adulthood with your favorite childhood snacks

17
0






Take a break from your adulthood with your favorite childhood snacks – an out-of-town blog























function appendFbScript() { var js, id = 'facebook-jssdk', fjs = document.getElementsByTagName('script')[0];

if (document.getElementById(id)) return; js = document.createElement('script'); js.id = id; js.src = "https://connect.facebook.net/en_US/sdk.js#xfbml=1&appId=107921999289098&version=v2.0"; fjs.parentNode.insertBefore(js, fjs);

window.fbAsyncInit = function () { FB.init({ appId: '107921999289098', xfbml: true, version: 'v2.0' }); FB.Event.subscribe('comment.create', function (comment_data) { console.log(comment_data); update_comments_count(); }); FB.Event.subscribe('comment.remove', function (comment_data) { update_comments_count(); });

function update_comments_count(comment_data, comment_action) { jQuery.ajax({ type: 'GET', dataType: 'json', url: 'https://outoftownblog.com/wp-admin/admin-ajax.php', data: { action: 'clear_better_facebook_comments', post_id: '100755' }, success: function (data) { // todo sync comments count here! data have the counts }, error: function (i, b) { // todo } } ) }; };

appendFbScript(); }

appendFbScript();

})();

Disclaimer: The opinions expressed within this article are the personal opinions of the author. The facts and opinions appearing in the article do not reflect the views of knews.uk and knews.uk does not assume any responsibility or liability for the same.

For latest entertainment news| health news| political news| sports news| travel news| Covid-19 news| Tech news| Digital Marketing| Lyrics

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.