Hello!

The last time that I added some capabilities of Twitter in any app, I used the excellent Daniel Crenna’sĀ TweetSharpĀ library. Today when trying to add the NuGet package to a Universal de Windows 10 app, I have come to realize that it is not supported for UWP.

So, now is time toĀ find some cool alternativeĀ to do this. After a while I choose to give a try toĀ TweetInvi. I’ve personally liked by the simple implementation and is also very easy to use.

Once added the package our Universal App Windows, we must define the credentials we will use. For this we must register our app on the Twitter developer portal and sign the following information

  • consumer_key
  • consumer_secret
  • access_Token
  • access_Token_Secret

Important: OAuth is an interesting and crazy world, the FAQ of the development site inĀ Twitter explains very well how to use it.

A good practice is to register the OAuth credentials when you start our app.

Clipboard02

And now only us as easy: send a tweet. This is done with a single line of code

Tweet.PublishTweet(“Hello Bruno!”);

Clipboard04

TweetInvi has also options to send tweets with attachments (images or videos), to make a reply or to mark a tweet as a favorite, and more options.

Greetings @ Madrid

-El Bruno

References

2 responses to “#VS2015 – Sending tweets from an #UWP app #Windows 10”

  1. […] El Bruno Sending Tweets from a Windows 10 Universal App […]

    Like

Leave a comment

Discover more from El Bruno

Subscribe now to keep reading and get access to the full archive.

Continue reading