IOS ACAccountStore Code = 7, Failed to update credentials. Unknown client:

I work with the new iOS 6 Facebook API and usually had a β€œtough” time using the ACAccountStore methods. I get ACAccount with:

[accountStore requestAccessToAccountsWithType:self.facebookAccountType options:options completion:^(BOOL granted, NSError *error) { 

Then I need to periodically update the ACAccount token with:

 [accountStore requestAccessToAccountsWithType:self.facebookAccountType options:options completion:^(BOOL granted, NSError *error) { 

This works when I start with a clean iOS simulator environment using Reset Content and Settings.

But after a while I get the following.

 Error Domain=com.apple.accounts Code=7 "Cannot renew credentials. Unknown client: FBTest (org.my.app.FBTest)" 

I am making a call from an FBTest application.

There are many posts on how to launch iOS 6 FB, and I walked past this point. The complex part with the framework supports it over time.

+4
source share
1 answer

I would recommend the following:

  • Make sure you use the latest account structure.
  • Give the application your real package ID, not "org.my.app.FBTest".
  • Verify that keystore settings are included in the rights file.
  • Check it out on the adhoc assembly.
+1
source

Source: https://habr.com/ru/post/1437400/


All Articles