"SIMPLE" Java Facebook Login
<p>I'm working on a tiny <strong>Java Desktop project</strong>. Basically, I need to connect my users through their <strong>Facebook</strong> accounts, and once validated, I'd like to retrieve some of their <strong>public information</strong> <em>(name, email, birthday)</em>...</p>

<p>I've been doing heavy research regarding this, but the more i read, the more complicated it gets. And there were many points were I got so confused that I just wanted to slam my head through my screen :D</p>

<p>Anyway...</p>

<p>1- I understand that I'd need a <strong>Facebook SDK</strong> <em>(I'm using restFB)</em></p>

<p>2- Create an App on Facebook</p>

<p>3- Request permissions</p>

<p>4- Get User Access Token</p>

<p>5- Retrieve required data <em>(name, email, birthday)</em></p>

<p>One thing I dont understand, do I have to embed some form of <strong>Webbrowser</strong> in my Java app so that I can continue with the Facebook login process or can it be done through <strong>RestFB</strong>? and Unfortunately, RestFB doesnt explain nearly enough how to login a user, and when i found something close enough the user was hardcoded, but what if I want to register a new user everytime?</p>

<p>This is all i"ve got for now regarding the Login process:</p>

<pre><code>AccessToken accessToken = new DefaultFacebookClient().obtainAppAccessToken("471150563090234", "97514014f41b3c1e7f5b697ab5708dec");
String token=accessToken.getAccessToken();
DefaultFacebookClient facebookClient = new DefaultFacebookClient(token);
</code></pre>

<p><strong>ANY</strong> kind of help would be greatly appreciated!! Also, Where does <strong>OAuth</strong> fit in all this, i feel that this is the part I'm missing :)</p>