Пример #1
0
        public JsonResult FbLogin(string JsonData)
        {
            var UserFbData = FacebookUtil.FetchingData(JsonData);

            PrepareUser(UserFbData);

            session.IsFbLogin = true;

            return(Json(new { result = "1" }, "text/plain"));
        }
Пример #2
0
        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"));
            }
        }