I used restfb to check advanced user permissions. The Allow Permission dialog box will not appear next time. However, I click "Do Not Allow" in the Permission dialog box, will bring it back every time this page is available. I do not want. When I click the "Do not allow" button, I want the dialog to stop forever. please suggest me a way
Here is my code:
Java source:
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));
}
View Source:
<script type="text/javascript">
var checkExtPerm = <s:property value="checkExtPerm" />;
if (checkExtPerm == false) {
Facebook.showPermissionDialog('email', function (perms) {
});
}
</script>
source
share