Tweet This is an Umbraco Content App. It sits in the backoffice of Umbraco and allows a content editor or any backoffice user of Umbraco to create a tweet for the node and then allows you to tweet to a linked account. The tweet will then be published on Twitter with a link back to the webpage.
There is also a history of all tweets created and a link to that tweet from the backoffice.
Install via NuGet:
dotnet add package ocTweetThis --version 0.0.1
You need to get a Twitter API key from - https://developer.twitter.com/en/portal/dashboard
Once you have the details for your API, you need to update the appsettings.json file in your Umbraco project
"ocTweetThis": {
"ConsumerKey": "twitter_consumer_key",
"ConsumerSecret": "twitter_consumer_secret",
"AccessToken": "twitter_access_token",
"AccessSecret": "twitter_access_secret",
}
If you want to test Tweet This without an API Key from Twitter you can use Test Mode. Copy and Paste the snippet below in to the `appsettings.json
"ConsumerKey": "twitter_consumer_key",
"ConsumerSecret": "twitter_consumer_secret",
"AccessToken": "twitter_access_token",
"AccessSecret": "twitter_access_secret",
"EnableLiveTweeting": "False",
"EnableTestMode": "True"
Just add the two optional values to the appsettings.json file - "EnableLiveTweeting": "False"
and "EnableTestMode": "True"
. This will allow you to see the functionality of the package, minus it actually tweeting out to your account.