title: facebook login Server-side Apps with javascript sdk
body: <p>I have searched stackoverflow for an full example or some blog that explains how to make facebook login Server-side Apps with javascript sdk
  but didn't find anything.</p>
  
  <p>I have searched developer.facebook.com site and the only thing i have got was a php example <a href="https://developers.facebook.com/docs/howtos/login/server-side-login/" rel="nofollow">https://developers.facebook.com/docs/howtos/login/server-side-login/</a>.
  The problem is that i must use JavaScript. </p>
  
  <p>Why should i want to do that?
  The reason is that i want to upload files to the server(google-app-engine(Java Sdk)) and save  them on the db with the facebook user id and retrieve them by his user id.</p>
  
  <p>another question is, how can i debug my javascript code if he uploaded dynamically?what about code assist?</p>