예제 #1
0
        public static Dictionary<string, List<object>> GetFbGroupDataAccordingGroupId(string groupid, string accesstoken, string profileid)
        {
            User objUser = (User)System.Web.HttpContext.Current.Session["User"];
            Dictionary<string, List<object>> dic_profilessnap = new Dictionary<string, List<object>>();
            List<object> groupdata = null;

            groupdata = new List<object>();
            Api.Facebook.Facebook ApiobjFacebook = new Api.Facebook.Facebook();
            ApiobjFacebook.Timeout = 300000;
            List<FacebookGroupData> lstFacebookAccount = (List<FacebookGroupData>)(new JavaScriptSerializer().Deserialize(ApiobjFacebook.GetAllFbGroupdata(groupid.ToString(), accesstoken.ToString(), profileid), typeof(List<FacebookGroupData>)));
            foreach (var FacebookGroupData in lstFacebookAccount)
            {
                groupdata.Add(FacebookGroupData);
            }
            dic_profilessnap.Add("facebook", groupdata);
            return dic_profilessnap;
        }
예제 #2
0
        public static Dictionary <string, List <object> > GetFbGroupDataAccordingGroupId(string groupid, string accesstoken)
        {
            User objUser = (User)System.Web.HttpContext.Current.Session["User"];
            Dictionary <string, List <object> > dic_profilessnap = new Dictionary <string, List <object> >();
            List <object> groupdata = null;

            groupdata = new List <object>();
            Api.Facebook.Facebook ApiobjFacebook = new Api.Facebook.Facebook();

            List <FacebookGroupData> lstFacebookAccount = (List <FacebookGroupData>)(new JavaScriptSerializer().Deserialize(ApiobjFacebook.GetAllFbGroupdata(groupid.ToString(), accesstoken.ToString()), typeof(List <FacebookGroupData>)));

            foreach (var FacebookGroupData in lstFacebookAccount)
            {
                groupdata.Add(FacebookGroupData);
            }
            dic_profilessnap.Add("facebook", groupdata);
            return(dic_profilessnap);
        }