title: How to login to facebook using Facebook4j
body: <p>I am developing a photo viewer, which is a java desktop application and to integrate it with facebook I am using the <code>Facebook4J</code> library.
  But I am clueless as to where to provide the username and password for the user....</p>
  
  <p>I am using the following code :</p>
  
  <pre><code>public static  Configuration createConfiguration() {
      ConfigurationBuilder confBuilder = new ConfigurationBuilder();
  
      confBuilder.setDebugEnabled(true);
      confBuilder.setOAuthAppId("************");
      confBuilder.setOAuthAppSecret("***************");
      confBuilder.setUseSSL(true);
      confBuilder.setJSONStoreEnabled(true);
      Configuration configuration = confBuilder.build();
      return configuration;
  }
  public static void main(String[] argv) throws FacebookException {
      Configuration configuration =  createConfiguration();
      FacebookFactory facebookFactory = new FacebookFactory(configuration );
      Facebook facebookClient = facebookFactory.getInstance();
      AccessToken accessToken = null;
      try{
          OAuthSupport oAuthSupport = new OAuthAuthorization(configuration );
          accessToken = oAuthSupport.getOAuthAppAccessToken();
  
      }catch (FacebookException e) {
          System.err.println("Error while creating access token " + e.getLocalizedMessage());
      }
      facebookClient.setOAuthAccessToken(accessToken);
  //results in an error says {An active access token must be used to query information about the current user}
      facebookClient.postStatusMessage("Hello World from Facebook4J."); 
  }
  </code></pre>
  
  <p>How to pass the <code>username</code> and <code>password</code> the user?</p>