facebook-android-sdk
facebook-android-sdk copied to clipboard
Can't connect facebook when all permissions are approved
Checklist before submitting a bug report
- [X] I've updated to the latest released version of the SDK
- [X] I've searched for existing Github issues
- [X] I've looked for existing answers on Stack Overflow, the Facebook Developer Community Forum and the Facebook Developers Group
- [X] I've read the Code of Conduct
- [X] This issue is not security related and can safely be disclosed publicly on GitHub
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)
}
}
}
}
)
}
Permissions requested and approved
- pages_manage_posts
- pages_read_engagement
- public_profile
- publish_video