response.authResponse is null
i have write following code to check the login status of facebook. FB.getLoginStatus(function(response) { if (response.status === 'connected') { var user_id = response.authResponse.userID; var page_id = "app_id"; var fql_query = "SELECT uid FROM page_fan WHERE page_id = "+page_id+"and uid="+user_id; var the_query = FB.Data.query(fql_query); the_query.wait(function(rows) { if (rows.length == 1 && rows[0].uid == user_id) { alert("liked the page"); } else { alert("not liked "); } }); } else if (response.status === 'not_authorized') { } else { alert("not logged in"); } }); i am getting the value