Facebook的ASP.NET MVC从模板无法正常工作 [英] Facebook ASP.NET MVC from template not work

查看:155
本文介绍了Facebook的ASP.NET MVC从模板无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建模板项目。(ASP.NET MVC - > Facebook的)

I create project from template(ASP.NET MVC -> Facebook).

和接收错误

无法将字符串转换为整数public_profile。路径数据[0] .permission,1号线,位置39。

Could not convert string to integer: public_profile. Path 'data[0].permission', line 1, position 39.

说明:执行当前Web请求。请查看有关错误的详细信息的堆栈跟踪的执行过程中发生未处理的异常以及它起源于code。

Description: An unhandled exception occurred during the execution of the current web request.Please review the stack trace for more information about the error and where it originated in the code.

异常详细信息:Newtonsoft.Json.JsonReaderException:无法将字符串转换为整数public_profile。路径数据[0] .permission,1号线,位置39。

Exception Details: Newtonsoft.Json.JsonReaderException: Could not convert string to integer: public_profile. Path 'data[0].permission', line 1, position 39.

如果我改变[FacebookAuthorize(public_profile,电子邮件)]至[FacebookAuthorize()],我没有收到错误,但无法收到电子邮件。

If i change [FacebookAuthorize("public_profile","email")] to [FacebookAuthorize()], i not recieve error, but can't recieve email.

推荐答案

这是在.NET SDK中的问题。 Facebook最近改变了他们的API

It's a problem with the .NET SDK. Facebook recently changed their API

https://github.com/facebook-csharp- SDK / Facebook的CSHARP-SDK /问题/ 293

这篇关于Facebook的ASP.NET MVC从模板无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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