Skip to content

shantaramk/Facebook-Login

Repository files navigation

Facebook-Login

How to use facebook login interator

FacebookLoginInteractor.shared.clearSession()

@IBAction func signInWithFacebookButtonClick(_ sender: Any) {

     pushToFacebookView()

}

// MARK: - Facebook Login

extension LoginViewController: FacebookLoginDelegate {

func didLogInWithUserInformation(facebookId: String, accessToken: String) {
    //call Facebook Login API
}

  func pushToFacebookView() {
      let facebookLogin = FacebookLoginInteractor.shared
      facebookLogin.delegate = self
      facebookLogin.view = self
      facebookLogin.pushToFacebookView()
 }}

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages