string url = "https://sharepoint/sites/teamsite";string domain = "myDomain";string login = "myLogin";string pwd = "myPassword"; // feature id for MySite Newsfeed webpart:Guid feature = new Guid("6928B0E5-5707-46a1-AE16-D6E52522D52B");using (var ctx = new ClientContext(url)){ ctx.AuthenticationMode = ClientAuthenticationMode.Default; ctx.Credentials = new System.Net.NetworkCredential(login, pwd, domain); var features = ctx.Site.Features; ctx.Load(features); ctx.ExecuteQuery(); features.Add(feature, true, FeatureDefinitionScope.None); ctx.ExecuteQuery();}