title: Facebook OAuth login with Java (desktop only)
body: <p>How do I login into Facebook and get a accesstoken in Java with a desktop application only?</p>
  
  <p>I found a api <a href="http://restfb.com" rel="nofollow">http://restfb.com</a> that lets you call methods but you have to get the token yourself. So is there a way to do this using only a desktop app? Maybe embed a browser to a window popup?</p>
  
  <p>I already know the process in getting a token explained here <a href="http://benbiddington.wordpress.com/2010/04/23/facebook-graph-api-getting-access-tokens" rel="nofollow">http://benbiddington.wordpress.com/2010/04/23/facebook-graph-api-getting-access-tokens</a> so my question doesnt involve that. I need a way for the user to login into facebook using some kind of GUI.</p>