SplatDev.Umbraco.Plugins.Tweets 2.0.1

dotnet add package SplatDev.Umbraco.Plugins.Tweets --version 2.0.1
                    
NuGet\Install-Package SplatDev.Umbraco.Plugins.Tweets -Version 2.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SplatDev.Umbraco.Plugins.Tweets" Version="2.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SplatDev.Umbraco.Plugins.Tweets" Version="2.0.1" />
                    
Directory.Packages.props
<PackageReference Include="SplatDev.Umbraco.Plugins.Tweets" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SplatDev.Umbraco.Plugins.Tweets --version 2.0.1
                    
#r "nuget: SplatDev.Umbraco.Plugins.Tweets, 2.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SplatDev.Umbraco.Plugins.Tweets@2.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SplatDev.Umbraco.Plugins.Tweets&version=2.0.1
                    
Install as a Cake Addin
#tool nuget:?package=SplatDev.Umbraco.Plugins.Tweets&version=2.0.1
                    
Install as a Cake Tool

UmbracoCms.Plugins.Tweets

Twitter/X feed display plugin for Umbraco 13 (net8.0) and Umbraco 17 (net10.0). Fetches tweets via Twitter API v2, caches them locally in SQL Server, and renders styled tweet cards in Razor views or the backoffice dashboard.

Features

  • Fetches tweets using Twitter API v2 Bearer Token (OAuth 2.0)
  • Caches tweets in a local CachedTweets SQL table (avoids rate limits on page load)
  • Configurable maximum tweets count and refresh interval
  • Backoffice dashboard with tweet feed preview and manual refresh trigger
  • View component for embedding the feed in Razor views
  • Umbraco 17 dashboard (Lit 3) and Umbraco 13 dashboard (AngularJS)

Configuration

Add to appsettings.json:

{
  "UmbracoCms": {
    "Tweets": {
      "BearerToken": "YOUR_TWITTER_API_V2_BEARER_TOKEN",
      "TwitterHandle": "YourHandle",
      "MaxTweets": 10,
      "RefreshIntervalMinutes": 60,
      "CacheEnabled": true
    }
  }
}

Important: Keep the Bearer Token out of source control. Use environment variables or appsettings.Production.json (excluded from git) in production.

Embedding the Feed

@* Default (uses MaxTweets from config) *@
@await Component.InvokeAsync("Tweets")

@* Limit to 5 tweets on a sidebar *@
@await Component.InvokeAsync("Tweets", new { maxItems = 5 })

API Endpoints

Method Path Description
GET /umbraco/api/tweets/feed Return cached tweets
POST /umbraco/api/tweets/refresh Trigger a live API refresh

Database Table

CachedTweets — stores tweet content, author info, engagement metrics, and cache timestamp. Run migrations or context.Database.EnsureCreated() on startup.

Notes on Twitter API v2

  • A Twitter/X Developer account and App are required.
  • The free tier allows read access to public tweets for owned accounts.
  • The plugin handles the case where BearerToken or TwitterHandle is not configured by logging a warning and returning the current cache without error.
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.1 111 6/1/2026
2.0.0 88 6/1/2026