Questions tagged [acaccountstore]

The ACAccountStore class provides an interface for accessing, manipulating, and storing accounts

The ACAccountStore class provides an interface for accessing, manipulating, and storing accounts. To create and retrieve accounts from the Accounts database, you must create an ACAccountStore object. Each ACAccount object belongs to a single ACAccountStore object.

57 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
7
votes
4 answers

Can I customize Login button of Twitter kit in iOS?

I have downloaded a Twitter kit framework and added code to login with Twitter. But, I don't want Login button look like that. I want a custom button for Login. Can I do that ? I only want to use this framework as this also leverages with iOS system…
NSPratik
  • 4,714
  • 7
  • 51
  • 81
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
6
votes
1 answer

iOS Facebook native login (without Facebook SDK)

I am trying to use native (iOS 6-7x) libraries to authorize a user with Facebook from my app. I would like to pass the auth token to my server when login is successful. The code below works fine except when the user has not set up their Facebook…
dixkin
  • 811
  • 2
  • 11
  • 20
5
votes
1 answer

Save Facebook account using ACAccountStore

I'm trying to use iOS Social.framework to share to Facebook. However, most users will not have Facebook setup in Settings>Facebook so therefore Facebook doesn't show up when you bring up a UIActivityViewController, it just isn't listed. (See…
Paul Cezanne
  • 8,629
  • 7
  • 59
  • 90
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

Use of undeclared identifier "ACAccountStore"

I'm trying to use the ios Account Framework. I already added the Accounts.Framework in my build phases, but I still get the error Use of undeclared identifier "ACAccountStore" Anyone know why? Social.Framework works fine for me.
Max Zheng
  • 61
  • 1
  • 4
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

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
2 answers

iOS requestAccessToAccountsWithType is Not Showing Permission Prompt / NSAlert

It is my understanding that when I invoke [ACAccountStore requestAccessToAccountsWithType:options:completion], the user is supposed to see an UIAlert that asks them if they grant permission to my app. When I run this code, there is never a prompt…
Chris
  • 5,485
  • 15
  • 68
  • 130
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
4 answers

Twitter integration issue with ACAccountStore (iOS 5)

When I run below code with iOS 6.0, Its working ACAccountStore *account = [[ACAccountStore alloc] init]; ACAccountType *accountType = [account accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter]; [account…
Mehul Mistri
  • 15,037
  • 14
  • 70
  • 94
3
votes
1 answer

ACAccountStore no longer work with Twitter? (Swift, iOS 12)

I have a method that allows user to follow other twitter account using twitter API, however, this method stopped working since iOS 11. Because: Social accounts have been removed from Settings in iOS 11. Third-party apps no longer have access to…
RainCast
  • 4,134
  • 7
  • 33
  • 47
3
votes
5 answers

Get user profile details (especially email address) from Twitter in iOS

I am aiming to get a user's details based on his/her Twitter account. Now first of all, let me explain what I want to do. In my case, user will be presented an option to Sign-up with Twitter account. So, based on user's Twitter account, I want to be…
NSPratik
  • 4,714
  • 7
  • 51
  • 81
3
votes
1 answer

ACAccountStore accountsWithAccountType returning empty list yet request to access is granted

I have the following piece of Swift code to connect to twitter account in my iOS simulator. My call to requestAccessToAccountsWithType is granted, but the ACAccountStore.accountsWithAccountType returns an empty list. What am I missing? let…
vsftam
  • 145
  • 1
  • 7
1
2 3 4