访问令牌的Exchange代码上的5.0.9错误 [英] 5.0.9 error on Exchange code for access token

查看:60
本文介绍了访问令牌的Exchange代码上的5.0.9错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了"ASP.NET MVC 3网站入门",在我将SDK更新到5.0.9之前,它一直运行良好(5.0.8).

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.

它发生在

dynamic tokenResult = oAuthClient.ExchangeCodeForAccessToken(code);

代码"过去是正确的.

有什么想法吗?

谢谢

推荐答案

我遇到了同样的问题,我解决了从CodePlex下载源代码并再次编译Facebook.dll的问题.我从NuGet下载的那一个问题与您现在遇到的问题相同.

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.

这篇关于访问令牌的Exchange代码上的5.0.9错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆