I am trying to fix this code, but I am stuck in this error on my console:
Uncaught ReferenceError: checkLoginState is undefined.
I just followed this guide . Here is my code for this function and when I call it:
function checkLoginState() { FB.getLoginStatus(function(response) { statusChangeCallback(response); }); } <fb:login-button data-max-rows="1" data-size="large" data-show-faces="false" data-auto-logout-link="true" onlogin="checkLoginState();" scope="public_profile, pages_show_list"></fb:login-button>
source share