title: Getting an access token without a browser
body: <p>To give you some background information, I am currently working a backend to an application that keeps count of Facebook notifications on a very small 32-character LCD screen, hooked up to an <a href="http://arduino.cc" rel="nofollow">Arduino</a>. To do this, I have opened a Facebook application, and have a page on my server that redirects a user for authorization and permissions, and then proceeds to fetch an access token. In my browser, all the redirects work perfectly, and I end up with a JSON representation of my notifications. However, I would like this to work autonomously - when I try to fetch the page with Ruby, to parse the results and write them to the serial port, the result is the javascript used to redirect the user to the Facebook dialog, and not the notifications. I.E. client-side code is returned, not executed (not surprisingly).</p>
  
  <p>My question is whether there is anyway to obtain authorization, and request an access token without redirecting to another page, or running code client-side? </p>