Instance Method

renewCredentialsForAccount:completion:

Renews account credentials when the credentials are no longer valid.

Declaration

- (void)renewCredentialsForAccount:(ACAccount *)account completion:(ACAccountStoreCredentialRenewalHandler)completionHandler;

Parameters

account

The account to renew credentials.

completionHandler

The handler to call when the renewal has completed.

Discussion

For Twitter and Sina Weibo accounts, this method prompts the user to go to Settings to re-enter their password.

For Facebook accounts, if the access token has become invalid due to a regular expiration, this method obtains a new one.

If the user has deauthorized your app, this renewal request returns ACAccountCredentialRenewResultRejected.

See Also

Renewing Account Credentials

ACAccountStoreCredentialRenewalHandler

Specifies a handler to call when credentials are renewed.

ACAccountCredentialRenewResult

Status codes of credential renewal requests.