[ad_1]
Invert Takes the Squid ] Squid Squish to return to Greece with his beloved Christina Boba
. the return encountered some problems as their flight was delayed for two hours resulting in the loss of response to Athens in Barcelona.
So they found Munich and traveled (19459017) Thessaloniki, Finally
Despite the hbadle, the couple did not lose their smile .
function appendFbScript () { var js, id = & # 39; facebook-jssdk & # 39; fjs = document.getElementsByTagName (& # 39; script & # 39;) [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=1594771620778731&version=v2.0"; fjs.parentNode.insertBefore (js, fjs);
window.fbAsyncInit = function () { FB.init ({ appId: & # 39; 1594771620778731 & # 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: //www.altsantiri.gr/wp-admin/admin-ajax.php' ;, date: { action: & # 39; clear_better_facebook_comments & # 39; post_id: & # 39; 587742 & # 39; } success: function (data) { // todo sync comments count here! the data have the accounts } error: function (i, b) { // todo } } ) } }
jQuery (document) .on ("ajaxified-comments-loaded", appendFbScript); }
appendFbScript ();
}} ();
[ad_2]
Source link