shantaramk / Facebook-Login

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:Swift 95.2%Language:Ruby 4.8%