Ionic 3 Facebook login disabled (Facebook SDK deprecated) [Urgent]

We are using ionic with capacitor. Recently we got an email from facebook that they have depricated the in app browser login and we need to update the SDK to continue using the platform.

I am not sure how to do that facebook login depends on Capacitor core. I am attaching the screenshot that facebook has provided us.

can anyone help ? how to update the facebook SDK in ionic application ?


switch plugin: GitHub - capacitor-community/facebook-login: Facebook Login support

we are using the same. version is 1.0.0. Do I need to update ? will it help ? here is our sample code

import { FacebookLoginResponse } from '@capacitor-community/facebook-login';
const { FacebookLogin, SignInWithApple } = Plugins;
 facebookNativeSignIn() {

    return new Observable((observer: Observer<any>) => {
      const FACEBOOK_PERMISSIONS = ['email', 'public_profile'];
      FacebookLogin.login({ permissions: FACEBOOK_PERMISSIONS }).then((fbUser: FacebookLoginResponse) => {
        firebase.auth().setPersistence(firebase.auth.Auth.Persistence.LOCAL).then((value) => {
          firebase.auth().signInWithCredential(firebase.auth.FacebookAuthProvider.credential(fbUser.accessToken.token)).then(
            (result: any) => {
              this.checkUserExist(result.user.uid).then((userExist) => {
                this.storage.set('loggedInWith', 'facebook');
                if (userExist) {
                  this.initializedDataInItServiceByUserSnapShot(result.user.uid, true).pipe(take(1)).subscribe((data) => {
                    observer.next(data);
                  }, (err) => {
                    observer.error(err);
                    observer.complete();
                  });
                }
                else {
                  let userDetail: User = new User();
                  userDetail.uid = result.user.uid;
                  userDetail.profileName = result.user.displayName;
                  userDetail.name = result.user.displayName;
                  userDetail.userName = result.user.email;
                  userDetail.loggedInWith = 'facebook';
                  // save user detail with userid as docId in firestore database
                  this.saveUserDetail(userDetail, result.user.email, "").then((resp) => {
                    this.initializedDataInItServiceByUserSnapShot(result.user.uid, true).pipe(take(1)).subscribe((data) => {
                      observer.next(data);
                    }, (err) => {
                      observer.error(err);
                      observer.complete();
                    });
                  })
                }
              })
            }).catch((err) => {
              observer.error(err);
              observer.complete();
            });
        }).catch((err) => {
          observer.error(err);
          observer.complete();
        });

      }).catch((err) => {
        observer.error(err);
        observer.complete();
      })
    })

  }