title: OAuthException: Error validating verification code
body: <p>I have created two servlets named <code>s1</code> and <code>s2</code>.  </p>
  
  <p><code>s1</code> forwards requests to</p>
  
  <pre><code>https://graph.facebook.com/oauth/authorize?client_id=41050677*****&amp;redirect_uri=http://localhost:8080/fb10/s2&amp; scope=publish_stream,create_event
  </code></pre>
  
  <p>In <code>s2</code> I am getting the code and redirecting it to facebook success page:</p>
  
  <pre><code>https://graph.facebook.com/oauth/access_token?client_id=410506779*********&amp;redirect_uri=http://www.facebook.com/connect/login_success.html&amp; client_secret=22049dc145289c2dd7**************&amp;code=(extract code form url)
  </code></pre>
  
  <p>But I am getting an error:</p>
  
  <pre><code> {
     "error": {
        "message": "Error validating verification code.",
        "type": "OAuthException",
        "code": 100
     }
  }
  </code></pre>
  
  <p>How is this caused and how can I solve it? I have used <code>responce.sendredirect();</code> for redirection.</p>