Custom News feed web part for SharePoint site feed app.
Use the below code to populate and post the feed in site feed app in SharePoint 2013. Note : Enable/Activate Site feed feature in the list of available features var clientContext; var feedManager; var allfeeds; var website; var websiteurl = ""; function populatePosts() { try { SP.SOD.executeFunc('sp.js', 'SP.ClientContext', sharePointReady); } catch (ex) { alert(ex); } } function sharePointReady() { clientContext = SP.ClientContext.get_current(); website = clientContext.get_web(); clientContext.load(website); clientContext.executeQueryAsync(onRequestSucceeded, onRequestFailed); } function onRequestSucceeded() { // Ensure that the SP.UserProfiles.js file is loaded before the custom code runs. websiteurl = website.get_url(); SP.SOD.executeOrDelayUntilScr...