androidfacebook-android-sdksocial-authentication

Social login error occurred when try to login


I am working on android social login integration, I followed up the facebook official documentation

All worked correctly but I get the following error when trying to log in.

error on screen

My code snippet is here

loginButton.registerCallback(callbackManager, new FacebookCallback<LoginResult>() {
        @Override
        public void onSuccess(LoginResult loginResult) {
            // App code
        }

        @Override
        public void onCancel() {
            // App code
            Log.v("LoginActivity", "cancel");
        }

        @Override
        public void onError(FacebookException exception) {
            // App code
            Log.v("LoginActivity", exception.getCause().toString());
        }
    });

Please try to help!


Solution

  • go to Facebook developer console and change your app availability to general public