title: How to handle extended permissions dialog
body: <p>I used <strong>restfb</strong> to check extended permissions of user. I click allow permission dialog will not pop it up again next time. However I  clicking "Don't Allow" on the permission dialogue box will bring it back up every time when this page is accessed. I don't want. I want when Clicking "Don't Allow" will stop the dialog forever. please suggest me a way</p>
  
  <p>Here is my code:</p>
  
  <p>Java source:</p>
  
  <pre><code>public boolean getCheckExtPerm() throws FacebookJsonMappingException, FacebookException {
      Integer emailPerm = getFbClient().execute("users.hasAppPermission", getFbSigSessionKey(),
              Integer.class,Parameter.with("ext_perm", "email"));
      return emailPerm == null ? false : emailPerm.equals(new Integer(1));
    }
  </code></pre>
  
  <p>View source:   </p>
  
  <pre><code> &lt;script type="text/javascript"&gt;
        var checkExtPerm = &lt;s:property value="checkExtPerm" /&gt;;
        if (checkExtPerm == false) {
          Facebook.showPermissionDialog('email', function (perms) {
            //if (perms == "email" ) {}
          });
        }
    &lt;/script&gt;
  </code></pre>