I am facing problem in Facebook login in android,i have create key hash using method that facebook provide and added it to facebook developers console.
I have updated my manifest-

```
 <uses-permission android:name="android.permission.INTERNET"/>
 <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
 <meta-data 
     android:name="com.facebook.sdk.ApplicationId" 
     android:value="@string/fb_app_id"/>
 <activity android:name="com.facebook.LoginActivity" 
               android:screenOrientation="portrait">

```

and below is my code in activity -

```
private Session.StatusCallback callback = new Session.StatusCallback() {
    @Override
    public void call(Session session, SessionState state, Exception exception) {
        onSessionStateChange(session, state, exception);
    }
};
 @Override
    public void onResume() {
    super.onResume();
    Session session = Session.getActiveSession();
    if(session != null && (session.isOpened() || session.isClosed())) {
        onSessionStateChange(session, session.getState(), null);
    }
    else{
        if(isFbClick){
            Session s = new Session(mContext);
            Session.setActiveSession(s);
            s.openForRead(new Session.OpenRequest(this).setCallback(callback).setPermissions(Arrays.asList("basic_info","email")));
        }
    }
    uiHelper.onResume();
}

@Override
public void onPause() {
    super.onPause();
    uiHelper.onPause();
}

@Override
public void onDestroy() {
    super.onDestroy();
    uiHelper.onDestroy();
}

@Override
public void onSaveInstanceState(Bundle outState) {
    super.onSaveInstanceState(outState);
    uiHelper.onSaveInstanceState(outState);
}

   @SuppressWarnings("deprecation")
private void onSessionStateChange(final Session session, SessionState state, Exception exception) {
    flag = true;
    if(session.isClosed()){
        state  = SessionState.CLOSED;
    }
    if (session.isOpened() && state.isOpened()) {
            accessToken = session.getAccessToken();
            accessExpir = session.getExpirationDate();
            Log.i(TAG, "Logged in...");
            if (state.isOpened()) {
                if(mDialog==null){
                    mDialog = new ProgressDialog(mContext);
                }
                if(!mDialog.isShowing()){
                    mDialog.setMessage("please wait...");
                    mDialog.setCancelable(false);
                    mDialog.show();
                }
                 Request.executeMeRequestAsync(session, new Request.GraphUserCallback() {
                     public void onCompleted(GraphUser user, Response response) {
                          session.close();
                          session.removeCallback(callback);
                          getUserFacebookData(user);
                     }
                 });
             }
    }else if(state.equals(SessionState.CLOSED_LOGIN_FAILED)){

    }
    else if (state.isClosed()) {
        Log.i(TAG, "Logged out...");
    }
}

 @Override
protected void onStart() {
    super.onStart();
     Session session = Session.getActiveSession();
     if(session.isOpened()){
         session.close();
         session = null;
     }
}

```

and code inside my oncreate is - 

```
     uiHelper = new UiLifecycleHelper(this, callback);
     uiHelper.onCreate(savedInstanceState);
     authButton = (LoginButton) findViewById(R.id.authButton);
        authButton.setReadPermissions(Arrays.asList("basic_info","email"));
        authButton.setBackgroundResource(R.drawable.fb_login);
        authButton.setCompoundDrawablesWithIntrinsicBounds(0, 0, 0,0);
        authButton.setText("");
        authButton.setOnClickListener(new OnClickListener() {
            @Override
            public void onClick(View v) {
                isFbClick = true;
                Session s = new Session(mContext);
                Session.setActiveSession(s);
                s.openForRead(new Session.OpenRequest((Activity) mContext).setCallback(callback).setPermissions(Arrays.asList("public_profile","email")));
            }
        });

```

at the end when i click facebook button it returns error after user login -
Session state:CLOSED\_LOGIN\_FAILED.
I have try it on both Mobile(with facebook app installed and not installed) and emulator.

Thanks in advance.