You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 14, 2020. It is now read-only.
Hi, we are using parse as a backend in the app and using ParsefacebookUtils library to integrate facebook in the app.
At the time of login we use ParseFacebookUtils.logInWithReadPermissionsInBackground with permissions like "public_profile", "email", "user_friends", it works fine and allows us to login. However, at certain point of time in the app user can also post on facebook so we are calling
If the publish permission is not available to the user. This call is being made from the fragment after which it opens a facebook native dialog to allow the access. after allowing access it comes back to the onActivityResult method of the activity from which we try to redirect that call the onActivityResult method of the fragment.
But the requestcode in the onActivityResult method of activity is not matching with
CallbackManagerImpl.RequestCodeOffset.Login.toRequestCode()
and it's some weird number almost double of what Login requestcode which we use to determine that where the request is coming from, and due to this it's not redirecting to the onActivityResult method of the fragment class.
and even if we bypass that check and calls this directly from onActivityResult method of the fragment class
Hi, we are using parse as a backend in the app and using ParsefacebookUtils library to integrate facebook in the app.
At the time of login we use ParseFacebookUtils.logInWithReadPermissionsInBackground with permissions like "public_profile", "email", "user_friends", it works fine and allows us to login. However, at certain point of time in the app user can also post on facebook so we are calling
LoginManager.getInstance().logInWithPublishPermissions(this, Arrays.asList("publish_actions"));
If the publish permission is not available to the user. This call is being made from the fragment after which it opens a facebook native dialog to allow the access. after allowing access it comes back to the onActivityResult method of the activity from which we try to redirect that call the onActivityResult method of the fragment.
But the requestcode in the onActivityResult method of activity is not matching with
CallbackManagerImpl.RequestCodeOffset.Login.toRequestCode()
and it's some weird number almost double of what Login requestcode which we use to determine that where the request is coming from, and due to this it's not redirecting to the onActivityResult method of the fragment class.
and even if we bypass that check and calls this directly from onActivityResult method of the fragment class
callbackManager.onActivityResult(requestCode, resultCode, data);
it's not working and granting the publish_actions permission.
Any kind of help would be greatly appreciated.
Note: The app has been also approved for publish_actions on facebook.
I am using the facebook sdk version 4.26
The text was updated successfully, but these errors were encountered: