1

Is there any way to programatically remove app permission while using integrated iOS login?

I've tried DELETEing various (or all) /me/permissions before closing the session, but the OS will happily give me a new one without prompts when I ask for the removed permissions back. This session then doesn't work, as Facebook still things those permissions were revoked.

Is there a way to revoke permissions such that you get correctly prompted when logging in again, without the user having to work out they need to go to Settings and cycle some things?

Related:

Community
  • 1
  • 1
OrangeDog
  • 36,653
  • 12
  • 122
  • 207

1 Answers1

0

After revoking the permissions, call [FBSession renewSystemCredentials:] or [ACAccountStore renewCredentialsForAccount:completion] to update the OS's cache.

This solves the problem when you delete some of the permissions, but not when you delete all of them (which still returns FBErrorCategoryUserCancelled even if they press "Allow").

OrangeDog
  • 36,653
  • 12
  • 122
  • 207