[ad_1] To embed this post, copy the code below to your site 600px wide 400 px wide 300 px wide document.domain = "thejournal.ie"; window.on_front = false; window.authenticator=""; window.login_expires = 1761585548; window.users_token = ''; window.fbAsyncInit = function() { FB.init({appId: "116141121768215", status: true, cookie: true, xfbml: true}); if(typeof sync_with_server != 'undefined') { sync_with_server(); } }; (function(d){ var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = "https://connect.facebook.net/en_US/all.js"; d.getElementsByTagName('head')[0].appendChild(js); }(document)); window.email_permission = false; window.share_permission = false; var jrnl_social_window = null; function jrnl_social_login(service, submit_comment, callback) { var link = ''; if(service == 'twitter') { link = "https://www.thejournal.ie/utils/login/twitter/?"; if(submit_comment) { link = link + "&comment=1"; } else if(callback && callback.length > 0 ) { link = link + "?cb=" + callback; } } else if(service == 'facebook') { // Facebook link is a bit messier - need to bounce through popup link = "https://www.thejournal.ie/utils/login/facebook/?url=https%3A%2F%2Fwww.facebook.com%2Fdialog%2Foauth%3Fdisplay%3Dpopup%26client_id%3D116141121768215%26scope%3D" + get_fb_perm_string() + "%26redirect_uri%3Dhttps%3A%2F%2Fwww.thejournal.ie%2Futils%2Flogin%2Ffacebook%2F"; // Are we submitting after log-in? if(submit_comment) { link = link + "?comment=1"; } else if(callback && callback.length > 0 ) { link = link + "?cb=" + callback; } } if ( jrnl_social_window != null && !jrnl_social_window.closed ) jrnl_social_window.close(); jrnl_social_window = window.open( link, 'jrnl_social_window', 'status,scrollbars,location,resizable,width=600,height=350' ) jrnl_social_window.focus(); return false; } . [ad_2] Source link