code: @Deprecated
      public void setSession(Session session) {
          if (session == null) {
              throw new IllegalArgumentException("session cannot be null");
          }
          synchronized (this.lock) {
              this.userSetSession = session;
          }
      }
docs: Allows the user to set a Session for the Facebook class to use.
  If a Session is set here, then one should not use the authorize, logout,
  or extendAccessToken methods which alter the Session object since that may
  result in undefined behavior. Using those methods after setting the
  session here will result in exceptions being thrown.
  
  @param session the Session object to use, cannot be null