Using the XML Web Part to show your Twitter feed in SharePoint 10

I have put together a quick and dirty example of using the XML Web Part to display and style your Twitter RSS feed in a SharePoint page. 100% of the work is done in XSLT, all you have to do is:

  • Add an XML Web Part to your page:

 

twitter1 

  • Then for the XML Link add the RSS feed for your Twitter updates, the link for this can be found on the bottom right of your Twitter home page:

 

twitter3

 

  • Next, click the XSL Editor button and paste in the following XSLT code:

 


     version=”1.0″
     xmlns:xsl=”http://www.w3.org/1999/XSL/Transform”>
    
    
       

       
    

   
       

           

           

       

   

  • After you click OK and Apply your changes you should see your tweets styled in the XML Web Part:

 

twitter2

  • You can adjust the CSS in the XSLT to change the way the tweets look. Also, if this blows up your site, don’t say I didn’t warn you. I haven’t really tested it in production. Have fun!

10 thoughts on “Using the XML Web Part to show your Twitter feed in SharePoint

  1. Reply Anonymous May 1, 2009 4:16 am

    Greate it works form me. Indeed the tweets look needs to customize no problem.

    Thanks, sharing this!

  2. Reply Anonymous May 19, 2009 1:25 pm

    Any way to limit the number of tweets that will show?

  3. Reply John Moss Jul 9, 2009 1:10 pm

    I get this error

    Cannot retrieve the URL specified in the XML Link property. For more assistance, contact your site administrator.

    Any ideas?

    Thanks

  4. Reply Matthew McDermott Aug 29, 2009 7:31 am

    Great! Thanks fo rhte XSL. Did you know that you can substitute your account name for the ID in the URL? so my public timeline is http://twitter.com/statuses/user_timeline/MatthewMcD.rss

  5. Reply Larry W. Virden Nov 10, 2009 2:55 pm

    When I attempt to follow your instructions above, I end up with this message in the web part:
    Failed to apply XSLT to the content.

  6. Reply Don Nov 22, 2009 6:06 pm

    Thanx Randy,
    Hope you don’t mind me testing it out on my domain and linking back to you. http://www.asapsharepoint.com

  7. Reply chris Dec 24, 2009 10:57 am

    Your example worked like a charm. Works great for an upcoming project/requirement I have. What I need now is an example of how to limit the number of feeds. I am not a programmer, so very explicit examples apprecited. Thanks for your work.

  8. Reply lowry0031 Feb 13, 2012 8:13 am

    the RSS feed is gone from twitter, unless the hid it…?

  9. Reply Randy Drisgill Feb 13, 2012 11:29 am

    Yeah, I think this method is pretty much dead now :(

Leave a Reply