[ad_1] To embed this message, copy the code below to your site. 600px wide 400px wide 300px wide document.domain = "thejournal.ie"; window.on_front = false; window.authenticator = ''; window.login_expires = 1701175994; window.users_token = ''; window.fbAsyncInit = function() { FB.init({appId: "116141121768215", status: true, cookie: true, xfbml: true}); FB.Event.subscribe('edge.create', function(response){ // Log like socialReader.like(response); }); 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 = "http://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; } !function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, document,'script','https://connect.facebook.net/en_US/fbevents.js'); fbq('init', '923227664489862'); fbq('track', "PageView"); [ad_2] Source link