public string GetData(object userId, string profileId)
        {
            string ret = string.Empty;

            try
            {
                Guid UserId = (Guid)userId;
                //Api.FacebookFeed.FacebookFeed ApiObjFacebookFeed = new Api.FacebookFeed.FacebookFeed();
                //ApiObjFacebookFeed.getAllFacebookFeedsByUserIdAndProfileId(userId.ToString(), profileId);

                Api.User.User _User = new Api.User.User();

                Domain.Myfashion.Domain.User _AcUser = new User();
                //_AcUser = (Domain.Myfashion.Domain.User)(new JavaScriptSerializer().Deserialize(_User.getUserInfoByEmail("*****@*****.**"), typeof(Domain.Myfashion.Domain.User)));

                Api.FacebookAccount.FacebookAccount            ApiObjFacebookAccount = new Api.FacebookAccount.FacebookAccount();
                List <Domain.Myfashion.Domain.FacebookAccount> lstFacebookAccounts   = (List <Domain.Myfashion.Domain.FacebookAccount>)(new JavaScriptSerializer().Deserialize(ApiObjFacebookAccount.GetFacebookAccountByUserId(UserId.ToString()), typeof(List <Domain.Myfashion.Domain.FacebookAccount>)));
                //List<Domain.Myfashion.Domain.FacebookAccount> lstFacebookAccounts = (List<Domain.Myfashion.Domain.FacebookAccount>)(new JavaScriptSerializer().Deserialize(ApiObjFacebookAccount.GetFacebookAccountByUserId(_AcUser.Id.ToString()), typeof(List<Domain.Myfashion.Domain.FacebookAccount>)));


                foreach (FacebookAccount itemFb in lstFacebookAccounts)
                {
                    try
                    {
                        if ((itemFb.Type == "Page" || itemFb.Type == "page") && (string.IsNullOrEmpty(itemFb.AccessToken)))
                        {
                            GetFbPost(itemFb);
                            //processThreadManagerAllParsersREader.CallMultithreadedMethod(mt_AllParsersReader, itemFb);
                        }
                        else if ((itemFb.Type == "Page" || itemFb.Type == "page") && (!string.IsNullOrEmpty(itemFb.AccessToken)))
                        {
                            GetFbPageData(ret, itemFb);
                        }
                    }
                    catch (Exception Err)
                    {
                        Console.Write(Err.Message);
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            return(ret);
        }
        public string GetData(object userId, string profileId)
        {
            string ret = string.Empty;
            try
            {
                Guid UserId = (Guid)userId;
                //Api.FacebookFeed.FacebookFeed ApiObjFacebookFeed = new Api.FacebookFeed.FacebookFeed();
                //ApiObjFacebookFeed.getAllFacebookFeedsByUserIdAndProfileId(userId.ToString(), profileId);

                Api.User.User _User = new Api.User.User();

                Domain.Myfashion.Domain.User _AcUser = new User();
                //_AcUser = (Domain.Myfashion.Domain.User)(new JavaScriptSerializer().Deserialize(_User.getUserInfoByEmail("*****@*****.**"), typeof(Domain.Myfashion.Domain.User)));

                Api.FacebookAccount.FacebookAccount ApiObjFacebookAccount = new Api.FacebookAccount.FacebookAccount();
                List<Domain.Myfashion.Domain.FacebookAccount> lstFacebookAccounts = (List<Domain.Myfashion.Domain.FacebookAccount>)(new JavaScriptSerializer().Deserialize(ApiObjFacebookAccount.GetFacebookAccountByUserId(UserId.ToString()), typeof(List<Domain.Myfashion.Domain.FacebookAccount>)));
                //List<Domain.Myfashion.Domain.FacebookAccount> lstFacebookAccounts = (List<Domain.Myfashion.Domain.FacebookAccount>)(new JavaScriptSerializer().Deserialize(ApiObjFacebookAccount.GetFacebookAccountByUserId(_AcUser.Id.ToString()), typeof(List<Domain.Myfashion.Domain.FacebookAccount>)));


                foreach (FacebookAccount itemFb in lstFacebookAccounts)
                {
                    
                    try
                    {
                        if ((itemFb.Type == "Page" || itemFb.Type == "page") && (string.IsNullOrEmpty(itemFb.AccessToken)))
                        {
                            GetFbPost(itemFb);
                            //processThreadManagerAllParsersREader.CallMultithreadedMethod(mt_AllParsersReader, itemFb);
                        }
                        else if ((itemFb.Type == "Page" || itemFb.Type == "page") && (!string.IsNullOrEmpty(itemFb.AccessToken))) 
                        {
                            GetFbPageData(ret, itemFb);
                        }
                    }
                    catch (Exception Err)
                    {
                        Console.Write(Err.Message);
                    }
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
            return ret;
        }