I need a way to get ACAccount which is created, or taken by Twitter SDK provided by Fabric while login with:
Twitter.sharedInstance().logInWithCompletion { (session: TWTRSession?, error: NSError?) -> Void in
if let userSession = session {
}
else {
}
}
I need this account, to use while posting in background with SLRequest. Without account is not working.
If you are already using Twitter SDK, no need to deal with ACAccount anymore.
Just follow their instructions, and you can build a request manually: Build TW Request manually
Here is that code updated for Swift 2: