public JsonResult FbLogin(string JsonData) { var UserFbData = FacebookUtil.FetchingData(JsonData); PrepareUser(UserFbData); session.IsFbLogin = true; return(Json(new { result = "1" }, "text/plain")); }
public JsonResult FbLogin(string JsonData) { try { var UserFbData = FacebookUtil.FetchingData(JsonData); PrepareUser(UserFbData); session.IsFbLogin = true; return(Json(new { result = "1" }, "text/plain")); } catch (Exception ex) { return(Json(new { result = ex.Message + " inner ex: " + ex.InnerException }, "text/plain")); } }