Search This Blog

Tuesday 11 December 2012

SP2013: Adding a twitter feed to a SharePoint 2010 Site

Hi, quick guide on how to add a twitter feed to your SharePoint 2010 Site.

First create a html file with the following:

********


<script charset="utf-8" src="https://widgets.twimg.com/j/2/widget.js"></script>

<script>

new TWTR.Widget({
version: 2,

  type: 'search',

  search: '@SteersFastFood',
 
interval: 10000,
 
title: '',
 
subject: '',
 
width: 'auto',

height: 300,
 
theme: {
   
shell: {
     
background: '#ffffff',

      color: '#ffffff'
   
},

    tweets: {
     
background: '#ffffff',
     
color: '#444444',
     
links: '#1985b5'

    }
 
},
 
features: {
   
scrollbar: true,
   
loop: false,
   
live: true,
   
behavior: 'all'
 
}

}).render().start();</script>

*************

Upload the HTML file into your asset library under the site collection you want to add it.
You can find your asset library


Click on Site Asset

Upload your file


Go to edit site and add a web part. Choose a Content Editor


Go to your web part and edit it.


Enter a link to your file (/siteassets/twitter.html)