Android Facebook登录don';无法使用facebook应用程序

Android Facebook登录don';无法使用facebook应用程序,android,facebook,login,Android,Facebook,Login,我有一个奇怪的问题 在我的应用程序中,我实现了facebook的库,并记录了用户。 我创建了散列,我创建了API密钥(来自facebook)等等 一切都运行得很好,只是我在另一个项目中移动了类,复制了该布局的清单,如果你已经安装了facebook应用程序,我就不再登录了(如果安装了该应用程序,就可以工作)。。。我会忘记什么? 这是登录的代码 // start Facebook Login Session.openActiveSession(this, true, new Session

我有一个奇怪的问题 在我的应用程序中,我实现了facebook的库,并记录了用户。 我创建了散列,我创建了API密钥(来自facebook)等等 一切都运行得很好,只是我在另一个项目中移动了类,复制了该布局的清单,如果你已经安装了facebook应用程序,我就不再登录了(如果安装了该应用程序,就可以工作)。。。我会忘记什么? 这是登录的代码

 // start Facebook Login
    Session.openActiveSession(this, true, new Session.StatusCallback() {

      // callback when session changes state
      @Override
      public void call(Session session, SessionState state, Exception exception) {

        if (session.isOpened()) {

          // make request to the /me API
          Request.executeMeRequestAsync(session, new Request.GraphUserCallback() {

            // callback after Graph API response with user object
            @Override
            public void onCompleted(GraphUser user, Response response) {


              if (user != null) {
               String nickname = user.getName();
                String id = user.getId();
              // TextView welcome = (TextView) findViewById(R.id.textView1);
              //  welcome.setText("Hello " + user.getName() + "!");

              SharedPreferences prefs = getSharedPreferences("Preferenze", Context.MODE_PRIVATE);
              SharedPreferences.Editor editor = prefs.edit();

              if (nickname != null) {
                  editor.putString("utente", ""+nickname);
                 editor.commit();
              }
              String fotoProfilo =  "https://graph.facebook.com/" + id + "/picture";
              if (id != null){
                 editor.putString("path", ""+fotoProfilo);
                 editor.commit();

              }

            Intent LogIn= new Intent(getBaseContext(), MenuLoggato.class);
            LogIn.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
            LogIn.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
            LogIn.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);

            startActivity(LogIn);
            finish();
              //fin qui ci arriva
              }
            }
          });
        } else {
            System.out.println("non è entrato");
        }

        System.out.println("Log in non riuscito");
      }
    });
  }

  @Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      Session.getActiveSession().onActivityResult(this, requestCode, resultCode, data);
  }

对不起,我的英语不好,问题是我的OpenGL库版本不好。 我已经下载并发布了一个新版本,它生成了一个不同的散列码,并且可以正常工作。
Thaks to all

您是否使用与您在应用程序上签名时使用的密钥相同的密钥对应用程序进行签名?@Cata是的,我进行了签名,因为我使用了开发密钥。您可以发布一些日志输出吗?或者错误到底是什么?问题是没有错误。。。该应用程序仅显示一个白色屏幕,未在完成时进入公共无效状态(GraphUser用户,响应){如果(user!=null){现在工作(我不知道为什么…)我只在设备上重新安装了facebook应用程序