How to add twitter feed in SharePoint Online?

Hello SharePointers,

Below are the CSOM script to add twitter feed in SharePoint Online.

var componment= page.AvailableClientSideComponents();
ClientSideComponent client
componment =
componment.Where(t => t.Id == GUID FOR COMPONENT ).FirstOrDefault();
if (
clientcomponment != null)
{
ClientSideWebPart webPart = new ClientSideWebPart(cv);
page.AddControl(webPart);
page.save(url);
}

Happy SharePointing 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *