Skip to content

Instantly share code, notes, and snippets.

@Jerry0420
Last active February 21, 2017 09:30
Show Gist options
  • Save Jerry0420/9cee5502b7a71a657eccb784fc2ed628 to your computer and use it in GitHub Desktop.
Save Jerry0420/9cee5502b7a71a657eccb784fc2ed628 to your computer and use it in GitHub Desktop.
override func viewDidLoad() {
super.viewDidLoad()
faceBookLogIn.readPermissions = ["public_profile", "email", "user_friends"]
faceBookLogIn.delegate = self
// 第一次登入後可取得使用者token,後續即可直接登入
if (FBSDKAccessToken.current()) != nil{
// fetchProfile()
}
// Do any additional setup after loading the view, typically from a nib.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment