FB应用程序不允许用户使用它

I'm making a web site that to post a simple registration for a tournament you should LIKE page on FB.But FB app didn't give auth to all people.

     <div id="fb-root"></div>
    <script src="http://connect.facebook.net/en_US/all.js"></script>
    <script>
     FB.init({
         appId  : 'XXXX',
        status : true, 
cookie : true, 
      xfbml  : true  
 });
</script>
 <script>


// Additional initialization code here
 };

 // Load the SDK Asynchronously
 (function(d){
 var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
 if (d.getElementById(id)) {return;}
 js = d.createElement('script'); js.id = id; js.async = true;
 js.src = "//connect.facebook.net/en_US/all.js";
 ref.parentNode.insertBefore(js, ref);
 }(document));
 </script>










   <script type="text/javascript">
 $(document).ready(function(){
    FB.getLoginStatus(function(response) {
    if (response.status == 'connected') {
        var user_id = response.authResponse.userID;
        var page_id = "XXXXX"; //coca cola
        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) {
                $("#container_like").show();
 alert("you like us");
                //here you could also do some ajax and get the content for a "liker"   instead of simply showing a hidden div in the page.

            } else {
                $("#container_notlike").show();
                alert("you don't like us");
                //and here you could get the content for a non liker in ajax...
              }
          });
    } else {
        // user is not logged in

    }
   });

 });

This is my code.That should check if the actual user is connected to FB if yes to check if he liked the page.Ana show one of the divs .When i'm the user (i'm admin ot FB app) everything is OK,but if it's someone else it's not working.It shows that has no auth to use the APP. Thanks to all :)