facebookarchive / react-native-fbsdk

A React Native wrapper around the Facebook SDKs for Android and iOS. Provides access to Facebook login, sharing, graph requests, app events etc.
https://developers.facebook.com/docs/react-native
Other
2.99k stars 907 forks source link

On Android, if Facebook App Installed, Rerequest does not show Page selection screen #634

Open stripathi669 opened 5 years ago

stripathi669 commented 5 years ago

I am using FB login with ['manage_pages' , 'leads_retrieval'] scopes.

On iOS, Android(when facebook app not installed), on Login flow start - it allows me to reselect the pages every time I start the flow (1st, 2nd, nth)

On Andoird when facebook app is not installed, on Login Flow start 1st Time - Allows me to select pages Subsequent times - Does not show the flow again and returns with the correct response.

Code I'm using:

LoginManager.logInWithPermissions(['manage_pages', 'leads_retrieval']).then(
      (result) => {
        if (result.isCancelled) {
          this._showFailedDialog();
        } else {
          setLoading(true);
          setTimeout(() => {
            this._checkFBStatus(true);
          }, 500);
        }
      },
      (error) => {
         ...
      }
    );