handleFacebookActivityResult

fun KMPAuth.handleFacebookActivityResult(requestCode: Int, resultCode: Int, data: Intent?)

Forwards an Activity#onActivityResult callback to the Facebook SDK.

Only required for FacebookLoginTracking.Limited (the default). Limited Login needs a nonce, which the Facebook SDK only accepts through LoginConfiguration, and that API has no AndroidX Activity Result variant — its results still arrive via onActivityResult. With FacebookLoginTracking.Enabled KMPAuth uses the SDK's ActivityResultRegistryOwner overload, so no override is needed.

Calling this when it is not needed is harmless.

Example:

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