Inconsistent ACAccountStoreRequestAccessCompletionHandler behavior

Originator:john
Number:rdar://16283094 Date Originated:2014-03-10
Status:Open Resolved:
Product:iOS SDK Product Version:7.1
Classification: Reproducible:
 
Summary:
When a device has no social accounts configured you will get different results when requesting access to Twitter or Facebook. 

If you ask for, and grant, access to Twitter accounts you will get granted=YES, error=nil to the callback. If you ask for, and grant access to, the Facebook account you will get granted=NO, error.code= ACErrorAccountNotFound in the callback.

Steps to Reproduce:
Delete all Twitter & Facebook accounts from Settings, then call -[ACAccountStore requestAccessToAccountsWithType:options:completion:] asking for access to Twitter accounts. Grant access. Note the values of the callback.
Now call it again asking for access to Facebook accounts. Grant access. Note the values of the callback.

Expected Results:
The same results for both account types. granted=YES, error={Something that says there are no accounts of that type}

Actual Results:
Twitter: granted=YES, error=nil
Facebook: granted=NO, error={ code=ACErrorAccountNotFound }

Version:
7.1/11D167

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!