Questions tagged [acaccount]

An ACAccount object encapsulates information about a user account stored in the Accounts database.

Developer.apple.com entry.

78 questions
12
votes
0 answers

Generic use of Accounts Framework in iOS

I'd like to use the Accounts Framework in my app to take advantage of OAuth for Single Sign-On. What I found in the Apple's documentation regarding the Accounts Framework Reference is that the account types to use the framework with are limited to…
AppsDev
  • 12,319
  • 23
  • 93
  • 186
11
votes
3 answers

Limit permissions when accessing Facebook using Accounts framework

I need some help on this one .... So the problem I am facing is that while fetching the Facebook account from ACAccount, the alert view informs too many permissions. I am getting an alert box when I use the ACAccount login for facebook. It says…
Legolas
  • 12,145
  • 12
  • 79
  • 132
10
votes
3 answers

ACAccountStore Error 5

When attempting to save an account into an ACAccountStore, I sometimes receive this error. Later, if I attempt to access this account, I find that it's actually been saved. So far, I've yet to find any information about this nondescript error. Does…
Brandon Schlenker
  • 5,078
  • 1
  • 36
  • 58
7
votes
1 answer

How to handle the "ACAccountCredentialRenewResultRejected" message when calling renewCredentialsForAccount

I create an ACAccountStore, get access to the user's facebook account, store the account in an ACAccount object, and am able to retrieve the token from the credentials. But when I try and use this token to retrieve information from Facebook it won't…
ZachLHelms
  • 317
  • 1
  • 4
  • 10
7
votes
2 answers

Facebook Integration Error ( Accounts.framework) in iOS6

I am using the following code (showed on WWDC 2012 videos): self.accountStore = [[ACAccountStore alloc] init]; ACAccountType *facebookAccountType = [self.accountStore accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierFacebook]; …
Rui Peres
  • 25,741
  • 9
  • 87
  • 137
5
votes
2 answers

Cannot convert value of type '(Bool, NSError!) -> Void' to expected argument type 'ACAccountStoreRequestAccessCompletionHandler!'

Since upgrading on Xcode 8 (Beta 1) and Swift 3 I have an error in this line: account.requestAccessToAccounts(with: accountType, options: nil, completion: {(success: Bool, error: NSError!) -> Void in It says: Cannot convert value of type '(Bool,…
Devhess
  • 289
  • 4
  • 16
5
votes
2 answers

ACAccountStore requestAccessToAccountsWithType:options:completion: returning nil error and granted as NO

I'm trying to test sign-in with ACAccountStore, however it isn't going very well. I'm trying to gain access to the account like so: ACAccountStore *store = [ACAccountStore new]; ACAccountType *accountType = [store…
RileyE
  • 10,874
  • 13
  • 63
  • 106
5
votes
2 answers

Getting error ACErrorPermissionDenied (error code 7) for Facebook when using Social Framework

I am fetching the user’s Facebook account ID and name using ACAccountStore. When an alert comes up asking the user for permission (“XYZ would like to access your news feed and profile”) and the user taps on “Don’t Allow”, I get error code 7, i.e…
5
votes
3 answers

ACAccount Facebook: An active access token must be used to query information about the current user

I am using iOS 6 Social framework for accessing user's Facebook data. I am trying to get likes of the current user within my app using ACAccount and SLRequest. I have a valid Facebook account reference of type ACAccount named facebook, and I'm…
Can Poyrazoğlu
  • 33,241
  • 48
  • 191
  • 389
4
votes
1 answer

Dynamic UIActionSheet 'otherButtonTitles:'

I'm trying to create something to list all of a user's Twitter accounts connected to the device in a UIActionSheet. For instance, I have three Twitter accounts on my device. I'd like the action sheet to list my accounts with a cancel button.…
HighFlyingFantasy
  • 3,789
  • 2
  • 26
  • 38
4
votes
0 answers

Facebook Account Access Granted, but OauthToken is Null

My app is iOS7 only, and in the interest of saving headaches I decided against using the Facebook SDK for authentication and instead rely on iOS's ACAccountStore. Unfortunately I'm still getting headaches. I have a class called FacebookService with…
djibouti33
  • 12,102
  • 9
  • 83
  • 116
4
votes
2 answers

ACAccountCredential returns null for oauthToken

I am getting access to user's facebook via: [accStore requestAccessToAccountsWithType:fbAccountType options:options completion:^(BOOL granted, NSError *error) { …
0xSina
  • 20,973
  • 34
  • 136
  • 253
4
votes
2 answers

How to check if user has granted the access to Facebook or not?

I am using ACAccountStore for login through Facebook from native settings of iPhone for iOS version 6 or greater. For login I asked for the permission like below : [accountStore requestAccessToAccountsWithType:accountType options:options…
Mansi Panchal
  • 2,357
  • 18
  • 27
4
votes
1 answer

Getting "Error Code 8" When Calling [ACAccountStore requestAccessToAccountsWithType] - iOS Facebook

I have been searching Google and SO and cannot find what com.apple.accounts Error Code 8 means. I am attempting to use iOS 6 and the Facebook SDK. I run this request; if (!_accountStore) _accountStore = [[ACAccountStore alloc]…
Chris
  • 5,485
  • 15
  • 68
  • 130
4
votes
0 answers

Login twitter IOS without go to the Settings (like instagram)

I'm newer in twitter integration with IOS So, I have a doubt about that. I saw in many examples on the web that when you don't have an account connected in twitter, you just show an alert and redirect the user to the Setting to login in twitter…
sidneivl
  • 242
  • 3
  • 12
1
2 3 4 5 6