I did this to make it work after I make all types of changes, make new app, reset secret, permissions, etc...
This work for me!
Permissions (the 2nd in left menu)
"Configure your permissions" search for "Auth Token Parameter:"
if "Query String (?code=...)" change to URI Fragment (#acces_token=...)
Now you can grant permissions!!! F#K