java - How to handle extended permissions dialog -


i used restfb check extended permissions of user. click allow permission dialog not pop again next time. clicking "don't allow" on permission dialogue box bring every time when page accessed. don't want. want when clicking "don't allow" stop dialog forever. please suggest me way

here 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) {           //if (perms == "email" ) {}         });       }   </script> 

i don't think possible.

and better - happens if user clicks "don't allow" mistake? next time should able allow access.

you can in own application, not triggering dialog @ if user has denied access.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -