Office 365 / SharePoint Online - Is it Possible to Embed a Twitter Feed on a Modern Page? I'm currently using a modern web part 'Embed', but having no luck so far.
3 Answers
The Embed web part only support embedding content from secure websites. And SharePoint Online only support embedding content using the website address or iframe based embeds.
To add a Twitter Feed to a SharePoint page, we may need to add scripts (<script>….</script>
) to the page.
Refer to this article about customizing the modern experiences in SharePoint Online, we need to use SharePoint Framework Extensions to add scripts to SharePoint modern pages.
-
1add a Twitter Feed to a SharePoint page - the link is broken now. Do you have any other examples or info on how they did it?– ArviCommented Mar 14, 2018 at 1:52
We could successfully embed YouTube videos but struggled with embedding a twitter feed. After little success we created a work around. This may be of interest to others on how we did this:
We created a basic (HTML) webpage with only the following code from twitter (created through a twitter widget):
<a class="twitter-timeline" href="https://twitter.com/TwitterDev/timelines/539487832448843776?ref_src=twsrc%5Etfw">National Park Tweets - Curated tweets by TwitterDev</a>
This new webpage is then using the same domain as our website. On our SharePoint Online we embedded the 'Embed' modern webpart into our modern page and added the following code:
<iframe width="430" height="500" src="https://www.website.co.uk/twitter.html" frameborder="0"></iframe>
Voila!
Just use this web part https://github.com/thenikhilk/sharepoint-instagram-feed.
No need for tokens, registration or any third party sign-in, just username you want to embed.