public ActionResult AddFbPage(string profileid, string accesstoken, string email) { Api.Facebook.Facebook objApiFacebook = new Api.Facebook.Facebook(); Domain.Socioboard.Domain.User objUser = new Domain.Socioboard.Domain.User(); objUser = (Domain.Socioboard.Domain.User)Session["User"]; objApiFacebook.AddFacebookPagesInfo(objUser.Id.ToString(), profileid, accesstoken, Session["group"].ToString(), email); return(Content("")); }
public ActionResult AddFbPage(string arrId) { Api.Facebook.Facebook objApiFacebook = new Api.Facebook.Facebook(); Domain.Socioboard.Domain.User objUser = (Domain.Socioboard.Domain.User)Session["User"]; string[] arrProfiles = arrId.Split(','); List <Domain.Socioboard.Domain.AddFacebookPage> lstAddFacebookPage = (List <Domain.Socioboard.Domain.AddFacebookPage>)Session["fbpage"]; lstAddFacebookPage = lstAddFacebookPage.Where(t => arrProfiles.Contains(t.ProfilePageId)).ToList(); string strlstAddFacebookPage = new JavaScriptSerializer().Serialize(lstAddFacebookPage); objApiFacebook.AddFacebookPagesInfo(strlstAddFacebookPage, objUser.Id.ToString(), Session["group"].ToString()); return(Content("Success")); }
public ActionResult AddFbPage(string profileid, string accesstoken, string email) { Api.Facebook.Facebook objApiFacebook = new Api.Facebook.Facebook(); Domain.Socioboard.Domain.User objUser = new Domain.Socioboard.Domain.User(); objUser = (Domain.Socioboard.Domain.User)Session["User"]; //objApiFacebook.AddFacebookPagesInfo(objUser.Id.ToString(), profileid, accesstoken, Session["group"].ToString(), email); //objApiFacebook.AddFacebookPagesInfoAsync(objUser.Id.ToString(), profileid, accesstoken, Session["group"].ToString(), email); //Api.Facebook.Facebook objApiFacebook1 = new Api.Facebook.Facebook(); objApiFacebook.AddFacebookPagesInfo(objUser.Id.ToString(), profileid, accesstoken, Session["group"].ToString(), email); return Content(""); }
public ActionResult AddFbPage(string arrId) { Api.Facebook.Facebook objApiFacebook = new Api.Facebook.Facebook(); Domain.Socioboard.Domain.User objUser =(Domain.Socioboard.Domain.User)Session["User"]; string[] arrProfiles = arrId.Split(','); List<Domain.Socioboard.Domain.AddFacebookPage> lstAddFacebookPage = (List<Domain.Socioboard.Domain.AddFacebookPage>)Session["fbpage"]; lstAddFacebookPage = lstAddFacebookPage.Where(t => arrProfiles.Contains(t.ProfilePageId)).ToList(); string strlstAddFacebookPage = new JavaScriptSerializer().Serialize(lstAddFacebookPage); objApiFacebook.AddFacebookPagesInfo(strlstAddFacebookPage, objUser.Id.ToString(), Session["group"].ToString()); return Content("Success"); }