title: How to get long-lived access token Google API
body: <p>In the Google documentation it says</p>
  
  <pre><code>// Once the user authorizes with Google, the request token can be exchanged
  // for a long-lived access token.  If you are building a browser-based
  // application, you should parse the incoming request token from the url and
  // set it in OAuthParameters before calling GetAccessToken().
  </code></pre>
  
  <p>but it doesn't say or show how to do that :( </p>
  
  <p>Does anyone know how to do that for a desktop app?</p>
  
  <p>Code samples are more than welcome!</p>