Asp.net mvc Facebook开发者工具包没有';授权后不能重定向
我有一个基于示例的小型facebook测试应用程序(iframe)Asp.net mvc Facebook开发者工具包没有';授权后不能重定向,asp.net-mvc,facebook,Asp.net Mvc,Facebook,我有一个基于示例的小型facebook测试应用程序(iframe) 当我尝试转到“关于”页面时,FacebookAuthorizationAttribute会重定向到“索引”进行身份验证。问题是,它永远不会重定向回“关于”。我做错了什么?您找到解决方案了吗?我还看到FacebookAuthorization筛选器总是强制重定向到登录 public class HomeController : Controller { public ActionResult Index() {
当我尝试转到“关于”页面时,FacebookAuthorizationAttribute会重定向到“索引”进行身份验证。问题是,它永远不会重定向回“关于”。我做错了什么?您找到解决方案了吗?我还看到FacebookAuthorization筛选器总是强制重定向到登录
public class HomeController : Controller
{
public ActionResult Index()
{
var api = this.GetApi();
var userId = api.Session.UserId;
return View();
}
// redirects to Index
// which doesn't redirect back here
[FacebookAuthorization(IsFbml = false)]
public ActionResult About()
{
var api = this.GetApi();
// goes here without FacebookAuthorization
// but userId = 0
var userId = api.Session.UserId;
return View();
}
}