public void AddInvitationInfoBycode(string code, string Email, string UserId) { try { Domain.Myfashion.Domain.Invitation _Invitation = new Domain.Myfashion.Domain.Invitation(); Domain.Myfashion.Domain.User _User = userRepo.GetUserInfoByCode(code); if (_User != null) { _Invitation.Id = Guid.NewGuid(); _Invitation.SenderEmail = _User.EmailId; _Invitation.SenderUserId = _User.Id; _Invitation.FriendEmail = Email; _Invitation.FriendUserId = Guid.Parse(UserId); _Invitation.InvitationCode = code; _Invitation.AcceptInvitationDate = DateTime.Now; _Invitation.Status = 1; InvitationRepo.Add(_Invitation); } } catch (Exception ex) { logger.Error("AddInvitationInfoBycode : " + ex.StackTrace); logger.Error("AddInvitationInfoBycode : " + ex.Message); } }
public ActionResult Instagram() { string AddTwitterAccount = string.Empty; Domain.Myfashion.Domain.User objUser = (Domain.Myfashion.Domain.User)Session["User"]; string code = (String)Request.QueryString["code"]; Api.Instagram.Instagram apiobjInstagram = new Api.Instagram.Instagram(); try { AddTwitterAccount = apiobjInstagram.AddInstagramAccount(ConfigurationManager.AppSettings["InstagramClientKey"], ConfigurationManager.AppSettings["InstagramClientSec"], ConfigurationManager.AppSettings["InstagramCallBackURL"], objUser.Id.ToString(), Session["group"].ToString(), code); Session["SocialManagerInfo"] = AddTwitterAccount; } catch (Exception ex) { logger.Error("Instagram =>" + ex.StackTrace); logger.Error("Instagram =>" + ex.Message); Console.WriteLine(ex.Message); } logger.Error("Instagram =>" + AddTwitterAccount); if (Session["SocialManagerInfo"] == null) { return(RedirectToAction("Index", "Home")); } return(RedirectToAction("SocialMedia", "Home")); }
public ActionResult Twitter() { var requestToken = (String)Request.QueryString["oauth_token"]; var requestSecret = (String)Session["requestSecret"]; var requestVerifier = (String)Request.QueryString["oauth_verifier"]; Api.Twitter.Twitter apiobjTwitter = new Api.Twitter.Twitter(); try { string AddTwitterAccount = string.Empty; Domain.Myfashion.Domain.User objUser = (Domain.Myfashion.Domain.User)Session["User"]; apiobjTwitter.Timeout = 120 * 1000; //AddTwitterAccount = apiobjTwitter.AddTwitterAccount(ConfigurationManager.AppSettings["consumerKey"], ConfigurationManager.AppSettings["consumerSecret"], ConfigurationManager.AppSettings["callbackurl"], objUser.Id.ToString(), Session["group"].ToString(), requestToken, requestSecret, requestVerifier); Domain.Myfashion.Domain.TwitterAccount objTwitterAccount = (Domain.Myfashion.Domain.TwitterAccount) new JavaScriptSerializer().Deserialize(apiobjTwitter.AddTwitterAccount(ConfigurationManager.AppSettings["consumerKey"], ConfigurationManager.AppSettings["consumerSecret"], ConfigurationManager.AppSettings["callbackurl"], objUser.Id.ToString(), Session["group"].ToString(), requestToken, requestSecret, requestVerifier), typeof(Domain.Myfashion.Domain.TwitterAccount)); AddTwitterAccount = objTwitterAccount.TwitterUserId; Session["SocialManagerInfo"] = AddTwitterAccount; //To enable the Tweet Pop up TempData["IsTwitterAccountAdded"] = 1; TempData["TwitterAccount"] = objTwitterAccount; } catch (Exception ex) { logger.Error(ex.StackTrace); } if (Session["SocialManagerInfo"] == null) { return(RedirectToAction("SocialMedia", "Home")); } return(RedirectToAction("SocialMedia", "Home")); }
public static void AddUserActivation(Domain.Myfashion.Domain.User user) { Domain.Myfashion.Domain.UserActivation objUserActivation = new Domain.Myfashion.Domain.UserActivation(); objUserActivation.Id = Guid.NewGuid(); objUserActivation.UserId = user.Id; objUserActivation.ActivationStatus = "0"; UserActivationRepository.Add(objUserActivation); }
public ActionResult AddFbGroup(string ProfileGroupId, string accesstoken, string email, string Name) { Api.Facebook.Facebook objApiFacebook = new Api.Facebook.Facebook(); Domain.Myfashion.Domain.User objUser = new Domain.Myfashion.Domain.User(); objUser = (Domain.Myfashion.Domain.User)Session["User"]; objApiFacebook.AddFacebookGroupsInfo(objUser.Id.ToString(), ProfileGroupId, accesstoken, Session["group"].ToString(), email, Name); return(Content("")); }
public ActionResult SearchGplus(string keyword) { keyword = Uri.EscapeDataString(keyword); Domain.Myfashion.Domain.User objUser = (Domain.Myfashion.Domain.User)Session["User"]; Api.DiscoverySearch.DiscoverySearch ApiobjDiscoverySearch = new Api.DiscoverySearch.DiscoverySearch(); List <Domain.Myfashion.Domain.DiscoverySearch> GplusDiscoverySearch = new List <Domain.Myfashion.Domain.DiscoverySearch>(); GplusDiscoverySearch = (List <Domain.Myfashion.Domain.DiscoverySearch>)(new JavaScriptSerializer().Deserialize(ApiobjDiscoverySearch.DiscoverySearchGplus(objUser.Id.ToString(), keyword), typeof(List <Domain.Myfashion.Domain.DiscoverySearch>))); return(PartialView("_SearchGplusPartial", GplusDiscoverySearch)); }
public ActionResult Tumblr() { Domain.Myfashion.Domain.User objUser = (Domain.Myfashion.Domain.User)Session["User"]; string code = Request.QueryString["oauth_verifier"]; Api.Tumblr.Tumblr ApiobjTumblr = new Api.Tumblr.Tumblr(); string AddTumblrAccount = ApiobjTumblr.AddTumblrAccount(ConfigurationManager.AppSettings["TumblrClientKey"], ConfigurationManager.AppSettings["TumblrClientSec"], ConfigurationManager.AppSettings["TumblrCallBackURL"], objUser.Id.ToString(), Session["group"].ToString(), code); Session["SocialManagerInfo"] = AddTumblrAccount; return(RedirectToAction("SocialMedia", "Home")); }
public ActionResult AddFbPage(string profileid, string accesstoken, string email) { Api.Facebook.Facebook objApiFacebook = new Api.Facebook.Facebook(); Domain.Myfashion.Domain.User objUser = new Domain.Myfashion.Domain.User(); objUser = (Domain.Myfashion.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 LoadDiscovery() { // Edited by Antima Domain.Myfashion.Domain.User objUser = (Domain.Myfashion.Domain.User)Session["User"]; Api.DiscoverySearch.DiscoverySearch ApiobjDiscoverySearch = new Api.DiscoverySearch.DiscoverySearch(); List <string> lstSearchHistory = new List <string>(); lstSearchHistory = (List <string>)(new JavaScriptSerializer().Deserialize(ApiobjDiscoverySearch.getAllSearchKeywords(objUser.Id.ToString()), typeof(List <string>))); return(PartialView("_DiscoveryPartial", lstSearchHistory)); }
public static void AddUserPackageRelation(Domain.Myfashion.Domain.User user) { Domain.Myfashion.Domain.UserPackageRelation objUserPackageRelation = new Domain.Myfashion.Domain.UserPackageRelation(); UserPackageRelationRepository objUserPackageRelationRepository = new UserPackageRelationRepository(); PackageRepository objPackageRepository = new PackageRepository(); Domain.Myfashion.Domain.Package objPackage = objPackageRepository.getPackageDetails(user.AccountType); objUserPackageRelation.Id = new Guid(); objUserPackageRelation.PackageId = objPackage.Id; objUserPackageRelation.UserId = user.Id; objUserPackageRelation.PackageStatus = true; objUserPackageRelationRepository.AddUserPackageRelation(objUserPackageRelation); }
public void AddRequestToWithdraw(string WithdrawAmount, string PaymentMethod, string PaypalEmail, int Status, string UserID) { Domain.Myfashion.Domain.User _User = _UserRepository.getUsersById(Guid.Parse(UserID)); Domain.Myfashion.Domain.EwalletWithdrawRequest _EwalletWithdrawRequest = new Domain.Myfashion.Domain.EwalletWithdrawRequest(); _EwalletWithdrawRequest.Id = Guid.NewGuid(); _EwalletWithdrawRequest.UserName = _User.UserName; _EwalletWithdrawRequest.UserEmail = _User.EmailId; _EwalletWithdrawRequest.PaypalEmail = PaypalEmail; _EwalletWithdrawRequest.PaymentMethod = PaymentMethod; _EwalletWithdrawRequest.Status = Status; _EwalletWithdrawRequest.WithdrawAmount = WithdrawAmount; _EwalletWithdrawRequest.UserId = Guid.Parse(UserID); _EwalletWithdrawRequestRepository.Add(_EwalletWithdrawRequest); }
public string AddGroup(string GroupName, string UserId) { try { // GroupRepository grouprepo = new GroupRepository(); if (!grouprepo.checkGroupExists(Guid.Parse(UserId), GroupName)) { // Domain.Socioboard.Domain.Groups group = new Domain.Socioboard.Domain.Groups(); group.GroupName = GroupName; group.UserId = Guid.Parse(UserId); group.EntryDate = DateTime.Now; group.Id = Guid.NewGuid(); grouprepo.AddGroup(group); Domain.Myfashion.Domain.User objUser = objUserRepository.getUsersById(Guid.Parse(UserId)); Team.AddTeamByGroupIdUserId(objUser.Id, objUser.EmailId, group.Id); BusinessSetting ApiobjBusinesssSetting = new BusinessSetting(); Domain.Myfashion.Domain.BusinessSetting ObjBsnsStng = new Domain.Myfashion.Domain.BusinessSetting(); ObjBsnsStng.Id = Guid.NewGuid(); ObjBsnsStng.BusinessName = GroupName; ObjBsnsStng.GroupId = group.Id; ObjBsnsStng.AssigningTasks = false; ObjBsnsStng.TaskNotification = false; ObjBsnsStng.FbPhotoUpload = 0; ObjBsnsStng.UserId = Guid.Parse(UserId); ObjBsnsStng.EntryDate = DateTime.Now; string ObjBsnsStg = (new JavaScriptSerializer().Serialize(ObjBsnsStng)); string BsnsMessage = ApiobjBusinesssSetting.AddBusinessByUser(ObjBsnsStg); return(new JavaScriptSerializer().Serialize(group)); } else { return("Group Already Exists"); } } catch (Exception ex) { Console.WriteLine(ex.StackTrace); return("Something Went Wrong"); } }
public ActionResult Addfacebookpagebyurl(string type, string url, string name) { var pageid = ""; if (type == "fanpage") { try { logger.Error("Enter in try Addfacebookpagebyurl"); try { Api.Facebook.Facebook apiobjFacebook = new Api.Facebook.Facebook(); logger.Error("Enter in try Addfacebookpagebyurl 1"); dynamic data = string.Empty; string strdata = string.Empty; try { Domain.Myfashion.Domain.AddFacebookPage objAddFacebookPage = (Domain.Myfashion.Domain.AddFacebookPage)(new JavaScriptSerializer().Deserialize(apiobjFacebook.GetFbPageDetails(url), typeof(Domain.Myfashion.Domain.AddFacebookPage))); pageid = objAddFacebookPage.ProfilePageId; } catch (Exception ex) { logger.Error(strdata); logger.Error(data); logger.Error(ex.Message); logger.Error(ex.StackTrace); } { logger.Error("data = fb.Get"); logger.Error(pageid); string Accestoken = string.Empty; string mail = string.Empty; if (pageid != null) { try { logger.Error("Inside apiobjFacebook.AddFacebookPagesByUrl"); Domain.Myfashion.Domain.User objUser = (Domain.Myfashion.Domain.User)Session["User"]; apiobjFacebook.AddFacebookPagesByUrl(objUser.Id.ToString(), pageid, Session["group"].ToString(), name); } catch (Exception ex) { Console.WriteLine(ex.StackTrace); logger.Error("error1"); logger.Error(ex.Message); logger.Error(ex.StackTrace); } } else { } } } catch (Exception ex) { Console.WriteLine(ex.StackTrace); logger.Error("dynamic data"); logger.Error(ex.Message); logger.Error(ex.StackTrace); } } catch (Exception ex) { Console.WriteLine(ex.StackTrace); logger.Error(ex.Message); logger.Error(ex.StackTrace); } } else { } return(Content("")); }
public ActionResult Facebook(string code) { string status = ""; if (Session["fblogin"] != null) { if ((string)Session["fblogin"] == "fblogin") { Session["fblogin"] = null; if (String.IsNullOrEmpty(code)) { return(RedirectToAction("Index", "Index")); } Domain.Myfashion.Domain.User objUser = (Domain.Myfashion.Domain.User)Session["User"]; Domain.Myfashion.Domain.User checkuserexist = (Domain.Myfashion.Domain.User)Session["User"]; string facebookcode = code; Api.Facebook.Facebook apiobjFacebook = new Api.Facebook.Facebook(); Api.User.User ApiobjUser = new Api.User.User(); string fbloginreturn = apiobjFacebook.FacebookLogin(code); string[] arrfbloginreturn = Regex.Split(fbloginreturn, "_#_"); objUser = (Domain.Myfashion.Domain.User)(new JavaScriptSerializer().Deserialize(arrfbloginreturn[0], typeof(Domain.Myfashion.Domain.User))); Session["AccesstokenFblogin"] = arrfbloginreturn[1]; Session["fblogin"] = "******"; try { Response.Write("Facebook Returned email : " + objUser.EmailId); } catch (Exception ex) { Console.WriteLine(ex.Message); logger.Error(ex.StackTrace); logger.Error(ex.Message); } try { checkuserexist = (Domain.Myfashion.Domain.User)(new JavaScriptSerializer().Deserialize(ApiobjUser.getUserInfoByEmail(objUser.EmailId.ToString()), typeof(Domain.Myfashion.Domain.User))); string pid = checkuserexist.PuId; string puid = pid.Substring(36, pid.Length - 36); SortedDictionary <string, string> strdic = new SortedDictionary <string, string>(); strdic.Add("username", checkuserexist.EmailId); strdic.Add("password", puid); string data = CustomHttpWebRequest.HttpWebRequest("GET", "myfashion/loginService.action", strdic); data = data.Replace("func({", "{"); data = data.Replace("});", "}"); JObject jo = JObject.Parse(data); status = Server.UrlDecode((string)jo["code"]); } catch (Exception e) { checkuserexist = null; } if (checkuserexist != null) { Session["User"] = checkuserexist; int daysremaining = 0; daysremaining = (checkuserexist.ExpiryDate.Date - DateTime.Now.Date).Days; if (daysremaining > 0) { #region Count Used Accounts try { Session["Paid_User"] = "******"; Api.SocialProfile.SocialProfile apiobjSocialProfile = new Api.SocialProfile.SocialProfile(); //Session["ProfileCount"] = Convert.ToInt32(apiobjSocialProfile.GetAllSocialProfilesOfUserCount(objUser.Id.ToString()).ToString()); } catch (Exception ex) { Console.WriteLine(ex.Message); } #endregion } else { Session["Paid_User"] = "******"; } if (status == "101") { return(RedirectToAction("Index", "Home")); } else { return(RedirectToAction("Index", "Index")); } } else { objUser.ActivationStatus = "1"; Session["User"] = objUser; return(RedirectToAction("SignUp", "Index")); } } else if ((string)Session["fblogin"] == "page") { Session["fblogin"] = null; Api.Facebook.Facebook apiobjFacebook = new Api.Facebook.Facebook(); List <Domain.Myfashion.Domain.AddFacebookPage> lstAddFacebookPage = new List <Domain.Myfashion.Domain.AddFacebookPage>(); lstAddFacebookPage = (List <Domain.Myfashion.Domain.AddFacebookPage>)(new JavaScriptSerializer().Deserialize(apiobjFacebook.GetFacebookPages(code), typeof(List <Domain.Myfashion.Domain.AddFacebookPage>))); Session["fbpage"] = lstAddFacebookPage; return(RedirectToAction("Index", "Home", new { hint = "fbpage" })); } else if ((string)Session["fblogin"] == "fbgroup") { Session["fblogin"] = null; Api.Facebook.Facebook apiobjFacebook = new Api.Facebook.Facebook(); List <Domain.Myfashion.Domain.AddFacebookGroup> lstAddFacebookGroup = new List <Domain.Myfashion.Domain.AddFacebookGroup>(); lstAddFacebookGroup = (List <Domain.Myfashion.Domain.AddFacebookGroup>)(new JavaScriptSerializer().Deserialize(apiobjFacebook.GetFacebookGroups(code), typeof(List <Domain.Myfashion.Domain.AddFacebookGroup>))); Session["fbgrp"] = lstAddFacebookGroup; return(RedirectToAction("Index", "Home", new { hint = "fbgrp" })); } } else { Domain.Myfashion.Domain.User objUser = (Domain.Myfashion.Domain.User)Session["User"]; string facebookcode = code; Api.Facebook.Facebook apiobjFacebook = new Api.Facebook.Facebook(); apiobjFacebook.Timeout = 120 * 1000; //string AddfacebookAccount = apiobjFacebook.AddFacebookAccount(facebookcode, objUser.Id.ToString(), Session["group"].ToString()); string AddfacebookAccount = ""; Domain.Myfashion.Domain.FacebookAccount objfacebookAccount = new Domain.Myfashion.Domain.FacebookAccount(); try { var res_addFacebook = apiobjFacebook.AddFacebookAccount(facebookcode, objUser.Id.ToString(), Session["group"].ToString()); AddfacebookAccount = res_addFacebook; try { objfacebookAccount = (Domain.Myfashion.Domain.FacebookAccount) new JavaScriptSerializer().Deserialize(res_addFacebook, typeof(Domain.Myfashion.Domain.FacebookAccount)); AddfacebookAccount = objfacebookAccount.FbUserId; } catch (Exception) { } } catch (Exception) { AddfacebookAccount = "issue_access_token"; } if (AddfacebookAccount == "issue_access_token") { Response.Redirect(Helper.SBUtils.GetFacebookRedirectLink()); } else if (AddfacebookAccount == "Account already Exist !") { } else { Session["SocialManagerInfo"] = AddfacebookAccount; //To enable the Facebook Message Pop up TempData["IsFacebookAccountAdded"] = 1; TempData["FacebookAccount"] = objfacebookAccount; } } return(RedirectToAction("SocialMedia", "Home")); }
public ActionResult Youtube() { string AddYoutubeAccount = string.Empty; string status = ""; string AddGPlusAccount = string.Empty; Domain.Myfashion.Domain.User objUser = (Domain.Myfashion.Domain.User)Session["User"]; Domain.Myfashion.Domain.User checkuserexist = (Domain.Myfashion.Domain.User)Session["User"]; string code = (String)Request.QueryString["code"]; Api.Youtube.Youtube apiobjYoutube = new Api.Youtube.Youtube(); Api.GooglePlus.GooglePlus ApiobjGooglePlus = new Api.GooglePlus.GooglePlus(); Api.User.User ApiobjUser = new Api.User.User(); if (Session["googlepluslogin"] != null) { if (!string.IsNullOrEmpty(code)) { if (Session["googlepluslogin"].ToString() == "googlepluslogin") { //objUser = (Domain.Myfashion.Domain.User)(new JavaScriptSerializer().Deserialize(apiobjYoutube.GoogleLogin(code), typeof(Domain.Myfashion.Domain.User))); string Googleloginreturn = apiobjYoutube.GoogleLogin(code); string[] arrgoogleloginreturn = Regex.Split(Googleloginreturn, "_#_"); objUser = (Domain.Myfashion.Domain.User)(new JavaScriptSerializer().Deserialize(arrgoogleloginreturn[0], typeof(Domain.Myfashion.Domain.User))); Session["AccesstokenFblogin"] = arrgoogleloginreturn[1]; Session["googlepluslogin"] = "******"; checkuserexist = (Domain.Myfashion.Domain.User)(new JavaScriptSerializer().Deserialize(ApiobjUser.getUserInfoByEmail(objUser.EmailId.ToString()), typeof(Domain.Myfashion.Domain.User))); string pid = checkuserexist.PuId; string puid = pid.Substring(36, pid.Length - 36); SortedDictionary <string, string> strdic = new SortedDictionary <string, string>(); strdic.Add("username", checkuserexist.EmailId); strdic.Add("password", puid); string data = CustomHttpWebRequest.HttpWebRequest("GET", "myfashion/loginService.action", strdic); data = data.Replace("func({", "{"); data = data.Replace("});", "}"); JObject jo = JObject.Parse(data); status = Server.UrlDecode((string)jo["code"]); if (checkuserexist != null) { Session["User"] = checkuserexist; int daysremaining = 0; daysremaining = (checkuserexist.ExpiryDate.Date - DateTime.Now.Date).Days; if (daysremaining > 0) { #region Count Used Accounts try { Session["Paid_User"] = "******"; Api.SocialProfile.SocialProfile apiobjSocialProfile = new Api.SocialProfile.SocialProfile(); //Session["ProfileCount"] = Convert.ToInt32(apiobjSocialProfile.GetAllSocialProfilesOfUserCount(objUser.Id.ToString()).ToString()); } catch (Exception ex) { Console.WriteLine(ex.Message); } #endregion } else { Session["Paid_User"] = "******"; } FormsAuthentication.SetAuthCookie(objUser.UserName, false); //ApiobjUser.UpdateLastLoginTime(checkuserexist.Id.ToString()); if (status == "101") { return(RedirectToAction("Index", "Home")); } else { return(RedirectToAction("Index", "Index")); } } else { objUser.ActivationStatus = "1"; Session["User"] = objUser; return(RedirectToAction("SignUp", "Index")); } } else if (Session["googlepluslogin"].ToString() == "gplus") { AddGPlusAccount = ApiobjGooglePlus.AddGPlusAccount(ConfigurationManager.AppSettings["YtconsumerKey"], ConfigurationManager.AppSettings["YtconsumerSecret"], ConfigurationManager.AppSettings["Ytredirect_uri"], objUser.Id.ToString(), Session["group"].ToString(), code); if (AddGPlusAccount == "Refresh Token Not Found") { AuthenticateYoutube(Session["googlepluslogin"].ToString()); } else { Session["SocialManagerInfo"] = AddGPlusAccount; } } } else { return(RedirectToAction("SocialMedia", "Index")); } } else { try { AddYoutubeAccount = apiobjYoutube.AddYoutubeAccount(ConfigurationManager.AppSettings["YtconsumerKey"], ConfigurationManager.AppSettings["YtconsumerSecret"], ConfigurationManager.AppSettings["Ytredirect_uri"], objUser.Id.ToString(), Session["group"].ToString(), code); if (AddYoutubeAccount == "Refresh Token Not Found") { AuthenticateYoutube(""); } else { Session["SocialManagerInfo"] = AddYoutubeAccount; } } catch (Exception ex) { Console.WriteLine(ex.Message); } } return(RedirectToAction("SocialMedia", "Home")); }
public ActionResult AddFbGroup(string ProfileGroupId, string accesstoken, string email, string Name) { Api.Facebook.Facebook objApiFacebook = new Api.Facebook.Facebook(); Domain.Myfashion.Domain.User objUser = new Domain.Myfashion.Domain.User(); objUser = (Domain.Myfashion.Domain.User)Session["User"]; objApiFacebook.AddFacebookGroupsInfo(objUser.Id.ToString(), ProfileGroupId, accesstoken, Session["group"].ToString(), email, Name); return Content(""); }
public ActionResult AddFbPage(string profileid, string accesstoken, string email) { Api.Facebook.Facebook objApiFacebook = new Api.Facebook.Facebook(); Domain.Myfashion.Domain.User objUser = new Domain.Myfashion.Domain.User(); objUser = (Domain.Myfashion.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(""); }