title: How to get facebook access token in winforms
body: <p>I'm new to the facebook c# sdk, and I'm trying to create a program that will post to a page's timeline.</p>
  
  <p>I have been trying to follow <a href="http://codesamplez.com/programming/facebook-api-access-token-using-c-sharp" rel="nofollow">this</a>, however I'm having difficulty understanding the second code snippet since it makes use of the <code>Request</code> class, in <code>asp.net</code>. I can't find a way to translate this into WinForms.</p>
  
  <p>(I did have to change the <code>FacebookAPI</code> to <code>FacebookClient</code>)</p>
  
  <p>How can I achieve the same effect, of redirecting to facebook and receive the <code>code</code> to get an access token?</p>