Forum

function statusChangeCallback(response) { if (response.status === 'connected') { //testAPI(); } else { //document.getElementById('status').innerHTML = 'Please log ' + 'into this webpage.'; } } function checkLoginState () { FB.getLoginStatus(function (response) { statusChangeCallback(response) })} window.fbAsyncInit = function() { FB.init({ appId : '205996786547502', cookie : true, // Enable cookies to allow the server to access the session. xfbml : true, version: 'v14.0' }); FB.getLoginStatus(function(response) { statusChangeCallback(response) }); };

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More