0

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!

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
Kesara Wimal
  • 639
  • 13
  • 22

2 Answers2

3

follow this steps

1)visit facebook developer console and Go to Settings then Basic then Contact Email and write down you any email.

2)inside 'App Review' Tab you must change Do you want to make this app and all its live features available to the general public? Yes

0

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