the code does not handle a case where the user has not given all the asked permissions. the only way to find that out is to read the scopes and look for denied and relogin.
either the app can find out, or the react component can. today one cannot do either. the easiest would be to call FB.login with return_scopes=true. the grantedscopes will be returned with the authResponse.
relevant line of code:
clickHandler () {
FB.login(this.checkLoginState, { scope: this.props.scope });
};
the code does not handle a case where the user has not given all the asked permissions. the only way to find that out is to read the scopes and look for denied and relogin.
either the app can find out, or the react component can. today one cannot do either. the easiest would be to call FB.login with return_scopes=true. the grantedscopes will be returned with the authResponse.
relevant line of code: