Tuesday, July 15, 2014

How to Integrate Twitter with SharePoint to Get Twitter Feeds

Although there are Twitter-SharePoint web parts in codeplex, we can integrate twitter with SharePoint with Out-of-the-box script editor/content editor web parts in few steps.

Simply, follow these steps for adding twitter to SharePoint to get twitter feeds.

Step 1: Go to https://www.twitter.com and Log-in to your Twitter account.(You need to have a twitter account!)

Step 2: Navigate to Settings >> Widgets (https://twitter.com/settings/widgets)
twitter feed web part sharepoint 2010

Step 3: In the widgets tab, Click on "Create New" button
twitter feed in sharepoint 2013

Step 4:  Under "User Timeline" tab, Click on “Create Widget” button to generate Twitter embed code. You can further customize look and feel by following developer API references.
twitter sharepoint 2010 web part

Step 5: Wait for the “Your Widget has been created.” Message from twitter. Now Copy the twitter embed code to clipboard

twitter and sharepoint integration
Here is my twitter widget script generated:
<a class="twitter-timeline"  href="https://twitter.com/SharePointDiary"  data-widget-id="489002092749549570">Tweets by @SharePointDiary</a>
    <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

Step 6: Navigate to your SharePoint site. Add a content Editor web part wherever required (Edit Page >> Add Web Part) . Paste the code copied from twitter into Content Editor’s “Source Editor”, Save and close! This will display twitter feeds in SharePoint sites.

Here is the end Result of Twitter SharePoint integration:
twitter integration sharepoint 2013

The above method works on SharePoint 2007, SharePoint 2010 and even in SharePoint 2013! compared with methods to show twitter RSS feed using XML Web parts, XSL in SharePoint, I consider the above method is relatively simple!
adding twitter to sharepoint 2007

Update: In SharePoint 2013, when "Minimal download strategy" feature is enabled, I see the twitter feeds are not rendering, instead it displays "Tweets by User"!

Solution: Either disable MDS feature or place the twitter code in a html file, save it in a library, display it in the page with Page viewer web part or with the help of "<iframe>" in CEWP!

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Five Challenges in SharePoint Security
...And How to Solve Them. Free White Paper

Check out these SharePoint products:


  1. I didn't know this. This is fantastic. I'm going onto twitter now to do this. Thanks for sharing this SharePoint tip and for the step by step

  2. Not working for me on SharePoint online 2013

  3. worked when 'minimal download strategy' feature is turned off

  4. No working for me as well "Tweet by @username "

  5. All i see is tweet by @username, is there something i am missing, these steps are too simple for anything to go wrong! any suggestions!

  6. We had this working for a year or so, but now it just says "Tweet by @username". Is there an IE11 tweak to get it working again?


Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...