When should I renew an ACAccount? Or, how to check if the credential is expired. (Facebook)
Recently I was assigned to survey how to use iOS framework ACAccount and Social to implement facebook post function. It is quite simple to gain access of the account configured in setting. if(!_accountStore) _accountStore = [[ACAccountStore alloc] init]; ACAccountType *facebookTypeAccount = [_accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook]; // Check if there is any faceboook account NSArray *accounts = [_accountStore accountsWithAccountType:facebookTypeAccount]; if (![accounts count]) { UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"alert" message:@