public List<user_demographic> GetRecords(JObject output, string FacebookAccessToken)
        {

            usergraphic = new List<user_demographic>();
            user_demographic facebook_user;
            List<JToken> country = new List<JToken>();



            //Check Error

            string strError = (string)output["Message"];
            //if (strError == "Error")
            //{
            //    facebook_user = new user_home();
            //    facebook_user.ErrorCode = (string)output["ErroCode"];
            //    UserHome.Add(facebook_user);
            //}

            // put data into jarray

            JArray data = (JArray)output["data"];

            if (data != null)
            {
                foreach (JObject item in data)
                {
                    facebook_user = new user_demographic();

                    #region Analytics(If we want the information about apps)

                    JArray Values = (JArray)item["values"];
                    if (Values != null)
                    {
                        foreach (JObject value in Values)
                        {
                            var test = value["value"].Count();
                            if (test > 0)
                            {
                                facebook_user.fansGenderAge = value["value"].ToList();
                                usergraphic.Add(facebook_user);
                            }
                        }

                    }
                    #endregion
                }
            }

            return usergraphic;
        }
        public List <user_demographic> GetRecords(JObject output, string FacebookAccessToken)
        {
            usergraphic = new List <user_demographic>();
            user_demographic facebook_user;
            List <JToken>    country = new List <JToken>();



            //Check Error

            string strError = (string)output["Message"];
            //if (strError == "Error")
            //{
            //    facebook_user = new user_home();
            //    facebook_user.ErrorCode = (string)output["ErroCode"];
            //    UserHome.Add(facebook_user);
            //}

            // put data into jarray

            JArray data = (JArray)output["data"];

            if (data != null)
            {
                foreach (JObject item in data)
                {
                    facebook_user = new user_demographic();

                    #region Analytics(If we want the information about apps)

                    JArray Values = (JArray)item["values"];
                    if (Values != null)
                    {
                        foreach (JObject value in Values)
                        {
                            var test = value["value"].Count();
                            if (test > 0)
                            {
                                facebook_user.fansGenderAge = value["value"].ToList();
                                usergraphic.Add(facebook_user);
                            }
                        }
                    }
                    #endregion
                }
            }

            return(usergraphic);
        }