I want to log the user out of my app and remove their permissions
I'm currently using the JS-SDK and have no Server Side Logic.
I know I can log a user out with FB.logout()
I can also revoke their permissions using FB.api('/me/permissions', 'DELETE')
to "de-authorize" the app
The problem is, I cannot seem to do both. Each seems to prevents the other from working.
EXAMPLES:
Calling
FB.api('/me/permissions', 'DELETE', function(){FB.logout()});
results in the following error:
"Refused to display document because display forbidden by X-Frame-Options."
Calling:
FB.logout(function(){FB.api('/me/permissions', 'DELETE');})
results in the user being logged out, but the permissions remain.