title: How to get Facebook access_token using the OAuth2.0
body: <p>I have integrated Facebook login into my web application.
  I am getting the "code" parameter when i am requesting by sending the required details, and then i have to exchange the obtained "code" for an "access_token".For that i am making a HTTP GET call to :- </p>
  
  <pre><code>https://graph.facebook.com/oauth/access_token?
      client_id={app-id}
     &amp;redirect_uri={redirect-uri}
     &amp;client_secret={app-secret}
     &amp;code={code-parameter}
  </code></pre>
  
  <p>The response which i am getting is </p>
  
  <pre><code>HTTP/1.1 200 OK [Content-Type: text/plain; charset=UTF-8, Access-Control-Allow-Origin: *, X-FB-Rev: 1624746, Pragma: no-cache, Cache-Control: private, no-cache, no-store, must-revalidate, Facebook-API-Version: v1.0, Expires: Sat, 01 Jan 2000 00:00:00 GMT, X-FB-Debug: XM3kCi/2T3bPfe2/QRmn08rBwHTn7SkY8iADhkirVCZ4HOKPGH45zK8WWq0/5+KDFdUWwIn7blnjYfy1py6jrQ==, Date: Wed, 04 Mar 2015 06:25:17 GMT, Connection: keep-alive, Content-Length: 245]
  </code></pre>
  
  <p>In the response i am not getting the access_token parameter which i need for further proceeding into the application.
  According to Facebook docs response should look like </p>
  
  <pre><code>access_token={access-token}&amp;expires={seconds-til-expiration}
  </code></pre>
  
  <p>Any help on this is highly appreciated.</p>