我使用帐户套件登录使用电话号码。
let accountKit = AKFAccountKit(responseType: AKFResponseType.accessToken)
var pendingLoginViewController: UIViewController?
override func viewDidLoad() {
super.viewDidLoad()
pendingLoginViewController = accountKit.viewControllerForLoginResume()
}
@IBAction func loginWithEmail(sender: AnyObject) {
let viewController = accountKit.viewControllerForPhoneLogin(with: nil, state: nil) as! AKFViewController
viewController.enableSendToFacebook = true
viewController.enableGetACall = true
viewController.delegate = self
present(viewController as! UIViewController, animated: true, completion: nil)
}
private func generateState() -> String {
let uuid = NSUUID().uuidString.lowercased()
return uuid
}
获得短信表单帐户工具包但app无限加载" Sending an SMS with your code
"它应该进入下一个屏幕输入登录代码。