问题
I've followed "Getting Started with an ASP.NET MVC 3 Website" and it has worked fine (5.0.8) until I updated the SDK to 5.0.9.
I've got this error when trying to exchange code for access token:
Unexpected character encountered while parsing value: a. Line 1, position 1.
It occurs at
dynamic tokenResult = oAuthClient.ExchangeCodeForAccessToken(code);
The "code" is correct as it used to be.
Any ideas?
Thanks
回答1:
I had the same problem, I solved it downloading the source code from CodePlex and compiling again the Facebook.dll. With the one that I downloaded from NuGet I had the same problem that you are having now.
来源:https://stackoverflow.com/questions/5609069/5-0-9-error-on-exchange-code-for-access-token