Unable to get access_token with JS SDK's cookie

Where using JS SDK, if you request Facebook with a request_uri for the access_token, you get this error:

```
Error validating verification code. Please make sure your redirect_uri is identical to the one you used in the OAuth dialog request
```