title: Getting the sessionKey using Facebook-Java API
body: <p>I am developing a Facebook application. In this application, I use Java API provided by Google and the application is based on web.</p>
  
  <p>I have the <code>facebook_api_key</code> and <code>facebook_secrete</code>, but how to get the <code>sessionKey</code>?</p>
  
  <p>This code is not web-based:</p>
  
  <pre><code>FacebookJsonRestClient client = new FacebookJsonRestClient(Test.API_KEY, Test.SECRET);
  String token = client.auth_createToken();
  String url = "http://www.facebook.com/login.php?api_key=";
  url += Test.API_KEY;
  url += "&amp;v=1.0";
  url += "&amp;auth_token=";
  url += token;
  String strCommand = "C:/Program Files/Internet Explorer/IEXPLORE.EXE ";
  strCommand += url;
  Runtime.getRuntime().exec(strCommand);
  // wait until the login process is completed
  // fetch session key
  String session = client.auth_getSession(token, true);
  ......
  </code></pre>
  
  <p>I want to change it to a web-based one.</p>