public static long FaceBookAuthentication(string id, string email, string firstName, string lastName) { try { var user = new BllUser(); var returnval = user.FaceBookAuthetication(id, email, firstName, lastName); if (returnval > 1) { var cookie = HttpContext.Current.Request.Cookies["Tagged"]; if (cookie == null) { cookie = new HttpCookie("Tagged"); cookie.Values.Add("d", UtilityClass.EncryptStringAES(returnval.ToString())); cookie.Expires = DateTime.MaxValue; HttpContext.Current.Response.SetCookie(cookie); } } return(returnval); } catch (Exception ex) { ex.ToExceptionless().Submit(); } return(0); }