Wednesday 12 October 2011

How to get a Twitter widget (feed) into Sharepoint 2010

I had a recent request from an academic wishing to get a Twitter feed into SharePoint 2010. Easy? Well not as easy as you would think. Discovering that the script functionality is turned of in Telerik RadEditor for MOSS SharePoint web part. Why? Telerik actually strips Javascript but there is a work around. Sadly, this did not work for me, I suspect even with AllowScripts="true" function, it would still need additional adjustments at administrator level, but I did not have the necessary access.

However I did try this and it worked! - Use the 'Content Editor' web part:
  1. Right click and copy the URL of this uploaded text file (probably best to ensure this file is ‘read only’ for students! Or hidden).
  2. Select ‘edit page’ for SharePoint (top left - activated for editing in this example)
  3. Select any ‘Add a Web part’ area (probably right is best? its personal preference)
  4. Find and add the web part ‘Content Editor’.
  5. Select 'edit web part' then paste the URL link for the txt file from the documents area to the ‘Content Link’ area of the web part (shown top right).
  6. Apply and ok.
  7. It now appears in SharePoint as an active Twitter widget/feed.
Know issues are: running script in IE (in general), the user will be asked if it’s safe to run active content – this does not usually happen in other browsers. Annoying but I think most users are used to this now.

Worth a look: There are several flavours to the Twitter widget feeds, including the ability to use a keyword search, opening up other opportunities.

Thank you to Mark Pannell and Elena Menendez-Alonso for some excellent suggestions to help make this happen.

11 comments:

  1. Awesome, i have just tried it out with Twitter and Youtube and it works amazingly

    ReplyDelete
  2. thank you for sharing

    ReplyDelete
  3. That's terrific - thanks so much. Very easy solution!

    ReplyDelete
  4. I spent 12 hrs looking for this on my own. Thanks to your help, I did it in 12 seconds. Thank you very much!!

    ReplyDelete
  5. This was very helpful. Thank you!

    ReplyDelete
  6. I follwed the instructions but all i get is the following error "Cannot retrieve the URL specified in the Content Link property. For more assistance, contact your site administrator." Any ideas where I am going wrong?

    ReplyDelete
    Replies
    1. Hi Claire, thank you for your comment. I suspect it is a case of ensuring that you use the correct URL. Im not able to test this at the moment, but this website seems to indicate that this error is associated: http://nishantrana.me/2014/09/29/cannot-retrieve-the-url-specified-in-the-content-link-property-for-more-assistance-contact-your-site-administrator-error-in-sharepoint/
      Hope it works for you!

      Delete
  7. I cannot get this to work in SharePoint 2010, using IE, it only will display using chrome. Any ideas why?

    ReplyDelete
    Replies
    1. Hello, I'm not entirely sure myself on this one, as Im not using 2010 any more, so cannot test this. However, you might find a solution via this site: https://twittercommunity.com/t/ie-9-10-11-not-displaying-twitter-widget/31017

      Delete