facebook-android-sdk icon indicating copy to clipboard operation
facebook-android-sdk copied to clipboard

Can't connect facebook when all permissions are approved

Open Syedovaiss opened this issue 2 years ago • 1 comments

Checklist before submitting a bug report

Java version

11

Android version

Android 13

Android SDK version

latest.release

Installation platform & version

Gradle

Package

Login

Goals

My app was working few days back and suddenly stops working.All the permissions and advance access are approved by facebook My app connects user and get his public profile, email information as well as pages he manage and through my app user can go live and read comments

The issue i'm facing is when i tap on facebook connectivity button in my app it redirects me to the facebook app where i allow permission of reading public details then on next page i select my pages which my app can read and manage then in the final step i'm getting a never ending loader with message ( Linking myApp to Facebook ) Also when i back press from there facebook callback returns success with null data while in processing my callback factory never gets call due to that never ending loader

Expected results

Tried almost everything but nothing works

Actual results

Loader keeps loading and can't connect facebook

Steps to reproduce

No response

Code samples & details

callbackManager?.let { callback ->
            LoginManager.getInstance().registerCallback(
                callback,
                object : FacebookCallback<LoginResult> {
                    override fun onCancel() {
                        cancel(true)
                    }

                    override fun onError(error: FacebookException) {
                        error(error.message.toString())
                     
                    }

                    override fun onSuccess(result: LoginResult) {
                        val tokenResults = TokenResults(accessToken = result.accessToken.token)
                        getUserInfo { info ->
                            info?.let {
                                it.tokenResults = tokenResults
                                success(it)
                            }
                        }
                    }
                }
            )
        }

Syedovaiss avatar Mar 22 '23 15:03 Syedovaiss

Permissions requested and approved

  • pages_manage_posts
  • pages_read_engagement
  • email
  • public_profile
  • publish_video

Syedovaiss avatar Mar 22 '23 15:03 Syedovaiss