How To Replace OnActivityResult With New Activity Result API?

The deprecated method onActivityResult is part of androidx.activity.ComponentActivity and appears with a strikethrough it when trying to override, the warning that shows in my files is as below:

'onActivityResult(Int, Int, Intent?): Unit' is deprecated. Overrides deprecated member in 'androidx.activity.ComponentActivity'. Deprecated in Java

To implement the Facebook login as per the documentation we must override this method to call another method, as below:

override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
        ParseFacebookUtils.onActivityResult(requestCode, resultCode, data)
        super.onActivityResult(requestCode, resultCode, data)
    }

From what I gather deprecated methods don’t instantly stop working as to give developers time to adapt their code, my issue now is how can we capture the activity result without using onActivityResult. given the activity we need to capture the result of is nested within a ParseFacebookUtils method.