Twitter

Uploading Multiple Images in Parallel with Async and LINQ to Twitter

The Twitter API recently deprecated the statuses/update_with_media endpoint, which LINQ to Twitter abstracts via a TweetWithMedia method. It’s replaced with a new endpoint, media/upload, and a new parameter to statuses/update, media_ids. The benefit of the new API change is that you can now tweet multiple images. Naturally, LINQ to Twitter supports this capability. However, what’s really interesting is that you can upload multiple images at the same time with Task.WhenAll. This post explains how ......

Released LINQ to Twitter v3.0.2

Today, I released LINQ to Twitter v3.0.2. This release takes LINQ to Twitter v3.0 out of beta and into a stable release. The primary features of this release are async commands/queries and Portable Class Library (PCL) support. Supporting Async The async support makes your application more responsive to the user, increases server scalability, and makes coding simpler (especially in technologies like Windows Phone where async is required). Here's an example of how to perform an async query: var tweets ......

LINQ to Twitter Async

The next version of LINQ to Twitter will be async. I’m currently doing some early spikes and everything is coming together nicely. Here’s a sample of what the syntax looks like, starting with Authorization. Here’s a standard PinAuthorizer, which allows you to authorize from console, desktop, or Windows Phone applications: async static Task TestLinqToTwitterAsync() { var credStore = new InMemoryCredentialStore { ConsumerKey = ConfigurationManager.AppSet... ConsumerSecret = ......

WinRtAuthorizer–A Better Way to do OAuth with LINQ to Twitter in Windows 8

Last July, I blogged about how to do OAuth in Windows 8 with LINQ to Twitter: http://geekswithblogs.net/W... A the time, that worked well, but was still not an optimal solution. It required setting up a page to handle a WebBrowser control, navigating to that page, authorizing, and then asked the user to copy a PIN into a text box to complete the dance. You still have to do that with desktop and Windows Phone apps, but not with Windows ......

Working with Timelines with LINQ to Twitter

When first working with the Twitter API, I thought that using SinceID would be an effective way to page through timelines. In practice it doesn’t work well for various reasons. To explain why, Twitter published an excellent document that is a must-read for anyone working with timelines: Twitter Documentation: Working with Timelines This post shows how to implement the recommended strategies in that document by using LINQ to Twitter. You should read the document in it’s entirety before moving on because ......

Refactoring Windows 8 Code-Behind to MVVM

In my previous post, Using LINQ to Twitter in Windows 8 Metro Apps, I cheated a little (some might say a lot) on my UI architecture by using code-behind. In this post, I’ll make it all better by showing you how to separate the model and interaction logic from the UI design – proper separation of concerns. I’ll accomplish this with a pattern, named Model-View-ViewModel (MVVM), which is widely used for WPF, Silverlight, and (soon) Windows 8 Metro Apps. I’ll start by discussing what MVVM is, move to ......

Using LINQ to Twitter in Windows 8 Metro Apps

While the title of this post suggests focus on LINQ to Twitter, it also indicates that I’ll be discussing how to build a Windows 8 Metro application. The application itself will display a list of tweets from Twitter’s public feed. In the sections that follow, you’ll read background information on pre-requisites to understanding the post, learn how to get LINQ to Twitter working with Visual Studio 11, and then see a step-by-step on how the application is built. Getting Started You can build Metro ......

Creating a NuGet Package for LINQ to Twitter

Giovanni Bassi published the original NuGet package for LINQ to Twitter (L2T), which I'm appreciative of. Since then, I have yet to do a release myself, but that is changing now. The current version of LINQ to Twitter is stable enough for a release, so the time is right. I think there are a few aspects of a LINQ to Twitter NuGet package that aren't as simple as point at a project and your done, so I'll document my process here in case anyone else is interested. Getting Started I had played around ......

DataSprings Blog Post

Here's a blog post by DataSprings on how to use LINQ to Twitter: http://bit.ly/jjmLZY.  It demonstrates how to authenticate with OAuth and how to use several of the APIs.

Joe

Displaying Search Results With LINQ to Twitter and ASP.NET MVC

Sometimes, the way that LINQ to Twitter materializes queries into entities isn’t immediately clear. It’s easy to get confused until you see the patterns or make a correlation between the Twitter API results and their representations as LINQ to Twitter entities. In this post, I’ll explain some of the logic behind the design of LINQ to Twitter entities and demonstrate an example of one of the more oddly designed entity types, Search. Note: They'll be talking about MVC3 during multiple sessions at Tech-Ed. ......

Full Twitter Archive