Configure Twitter in Sitefinity CMS

Use this page to add and configure registered Twitter applications to Sitefinity CMS. Through Sitefinity CMS backend you can use the Twitter API to publish tweets. For example, your blog posts can be published as tweets. To do this you need to register a Twitter application in Twitter and add it in Sitefinity.

NOTE: Sitefinity CMS application is added as an application by default and you can use it to tweet. You must register additional applications only if you do not want to use Sitefinity. You can, for example, add the name of your website as an application.
Even if you do not register your own application, you must assign users to Sitefinity CMS application – Step 6 and Step 7 of the following procedure.

To register an application, perform the following:

  1. Navigate to Administration » Settings » Twitter.
    If you have multisite, navigate to Administration » Settings » Global settings » Twitter
  2. Click Register an application in Twitter link.
    The Register an Application form opens.
    For more information, see twitter developers page on http://dev.twitter.com/.
  3. Fill out the registration form.

    NOTE: In Application Name input field, enter the name of your website. You must also fill out the Callback URL field, following the format:
    http(s)://example.com/Sitefinity/Administration/Settings/Basic/Twitter/

    When you complete your application registration, Twitter will generate a Consumer key and Consumer secret for your application.

  4. On Sitefinity’s Basic Settings page, click Add a registered Twitter application button.
  5. Enter the Application Name, the Consumer Key and Secret, generated by Twitter.
  6. Click Save.
    The application appears in the list of registered applications.

    You can delete an application by clicking its Actions button and selecting Delete.

  7. To associate Twitter users with an application, click the Actions link of the respective application and then click Associate Twitter User.
    You must associate at least one user, because there must be a Twitter user from whose account the tweets will be published. You can add more than one user to an application.

    For example, you can register an application MyNews, but you can associate two accounts with that application – sports and weather. Some people may follow only the sports other may follow only the weather.

    Twitter opens, asking you to grant access to the application to your Twitter data.

  8. Enter the login credentials of the user, which you want to associate and click Allow.
    The user appears under ASSOCIATED USERS on Basic Settings page.

NOTE: If you want to publish from Sitefinity CMS to Twitter, you must to create a feed. For more information, see Twitter feed.

URL Shortening 

Bitly is a URL shortening service. By default, Sitefinity CMS application uses the Sitefinity CMS bitly account for URL shortening. You can register and use your own bit.ly account. To do this, register at https://bitly.com/ and obtain the Account name and the API Key, which you then enter in Sitefinity CMS, by clicking the default Sitefinity CMS account under URL Shortening section.

Was this article helpful?