This project is read-only.


The motion10 SharePoint Twitter Status Notes Control allow users to update their status in SharePoint and sends the message automatically to Twitter.


The project contains the following elements:

  • Hammock for Rest - for communication and authentication (OAuth) with Twitter.
  • Diplo.Twitter - C# Library for easy authentication and sending the status update.
    • The Diplo.Twitter C# Library is extended to save and load Twitter Credentials from SharePoint User Profile Service Application.
  • A feature that will create two persisted objects > the Twitter Consumer Keys 
  • A feature that will register a delegate control.
  • A delegate control that loads a JavaScript file and C# methods to authenticate and route the twitter message.

When the delegate control is loaded, the OnOnit method will check if the Twitter credentials are known in the Secure Store. If not then the connect button is shown. When the user hits te connect button, the user will be redirected to authenticate at Twitter. After that the user is redirected back and the Token and TokenSecret are saved in the Secure Store. After that the user is authenticated to send tweets.


Take the following steps to install the TwitterSupport for the SharePoint Status Notes Control: 

  1. Register a new Twitter Application at
    • Provide a name for the Twitter Application.
    • Select 'Browser' as application type.
    • Provide a dummy callback URL.
    • Select 'Read & Write' as default access type.
    • Add domain as authroized domain.
  2. Register a new Secure Store Service Application.
    • Name the Application 'TwitterSupport' with application type 'Individual' and application url 'none'.
    • Create the following secure store field:
      a. Field Name = ScreenName / Field Type = UserName
      b. Field Name = UserID / Field Type = Key
      c. Field Name = Token / Field Type = Generic
      d. Field Name = TokenSecret  / Field Type = Password
  3. Add the solution package 'motion10.SharePoint.TwitterSupport.wsp' to SharePoint. (stsadm -o addsolution)
  4. Before deploy configure the ConsumerKey and ConsumerSecret key in the feature 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\motion10.SharePoint.TwitterSupport_motion10.SharePoint.TwitterSupport.ConsumerKeys' folder.
  5. Deploy the solution package 'motion10.SharePoint.TwitterSupport.wsp' at the MySite host web application.
  6. Activate the feature web feature 'motion10 SharePoint Twitter Status Notes Control' at the My Site host.
  7. Browse to your MySite and connect your Twitter account.
  8. Send your Tweets.

 Happy Tweeting!

Last edited Jul 14, 2011 at 9:11 AM by runmotion, version 10


No comments yet.