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.
source share