title: Android Facebook asking login every time?
body: <p>In my application integrating facebook login, facebook login working fine but its asking login ewvery time.</p>
  
  <p>I logged via facebook login working fine, in my app using app request while app request also asking facebook login. </p>
  
  <p>i want to avoid that tell me some idea to do this,</p>
  
  <p>my code for login:</p>
  
  <pre><code>Session.openActiveSession(Notication_Webview.this, true, new Session.StatusCallback() {
  @Override
  public void call(final Session session, SessionState state, Exception exception) {
  // TODO Auto-generated method stub
  if(session.isOpened()){
  
  Request.executeMeRequestAsync(session, new Request.GraphUserCallback() {
  @Override
  public void onCompleted(GraphUser user, Response response) {
  // TODO Auto-generated method stub
  if(user!=null){
  
  try{            
  userName=user.getFirstName();//obj.getString("first_name");
  facebookId=user.getId();//obj.getString("id");  
  }catch (Exception e) {
  Log.e(tag, "getUserIdMethod---&gt;"+e);
  }
  
  }
  }
  });                 
  }
  }
  });
  </code></pre>
  
  <p>In this code for app request,</p>
  
  <pre><code>Session session = Session.getActiveSession();
  Facebook mFb = new Facebook("app id");
  Bundle params = new Bundle();
  params.putString("to", userIDString);
  params.putString("message", Message);
  mFb.dialog(this.getParent(), "apprequests",
  params, new DialogListener() {
  
  public void onComplete(Bundle values) {
  // TODO Auto-generated method stub
  }
  
  public void onFacebookError(FacebookError e) {
  // TODO Auto-generated method stub
  }
  
  public void onError(DialogError e) {
  // TODO Auto-generated method stub
  }
  
  public void onCancel() {
  // TODO Auto-generated method stub
  }
  });
  </code></pre>
  
  <p>mFb.dialod method:</p>
  
  <pre><code> @Deprecated
      public void dialog(Context context, String action, Bundle parameters, final DialogListener listener) {
          parameters.putString("display", "touch");
          parameters.putString("redirect_uri", REDIRECT_URI);
  
          if (action.equals(LOGIN)) {
              parameters.putString("type", "user_agent");
              parameters.putString("client_id", mAppId);
          } else {
              parameters.putString("app_id", mAppId);
              // We do not want to add an access token when displaying the auth dialog.
              if (isSessionValid()) {
                  parameters.putString(TOKEN, getAccessToken());
              }
          }
  
          if (context.checkCallingOrSelfPermission(Manifest.permission.INTERNET) != PackageManager.PERMISSION_GRANTED) {
              Util.showAlert(context, "Error", "Application requires permission to access the Internet");
          } else {
              new FbDialog(context, action, parameters, listener).show();
          }
      }
  </code></pre>
  
  <p>tell me how to avoid second login.</p>