I use facebook sdk for login/register in my app. I use this code in LoginActivity.

private void tryLoginWithFacebook() {
    openActiveSession(this, true, new Session.StatusCallback() {
        @Override
        public void call(Session session, SessionState state, Exception exception) {
            if (session.isOpened()) {                    
                Request.newMeRequest(session, new Request.GraphUserCallback() {
                    @Override
                    public void onCompleted(GraphUser user, Response response) {
                        // my code -- don't call this method
                    }
                }).executeAsync();

            }
        }
    });
}

}

But method onCompleted(...) don't call.

Almost the same code in RegisterAcitvity.

P.S. When I click on the button facebook-login that there is a window with login - I enter the data, then the dialogue with the load - and nothing happens. I also want to say that in the registration screen all works.

Related posts

Recent Viewed