Samples

This page contains sample applications that show different ways to use LINQ to Twitter.

Windows 8 Samples

File Description
MetroSearchDemo.zip Search Demo
Cannot resolve file macro, invalid file name or id. OAuth & Tweet Demo
MetroTimelineDemo.zip Timeline Demo
MetroDirectMessageDemo.zip Direct Message Demo
MetroHelpDemo.zip Direct Message Demo
MetroAccountDemo.zip Account Demo
MetroBlocksDemo.zip Blocks Demo
MetroFavoritesDemo.zip Favorites Demo
MetroFriendshipDemo.zip Friendship Demo

Windows Phone 7 Samples

File Description
WP7TweetWithMediaDemo.zip OAuth and Tweet with Media Demo

ASP.NET MVC Samples

Coming Soon

ASP.NET WebForms Samples

File Description
WebFormsSearchDemo.zip Search Demo
WebFormsTimelineDemo.zip Status Timeline Demo
WebFormsDirectMessagesDemo.zip Direct Messages Demo
WebFormsHelpDemo.zip Help Demo
WebFormsReportSpamDemo.zip Report Spam Demo
WebFormsBlocksDemo.zip Block Demo
WebFormsAccountsDemo.zip Account Queries Demo
WebFormsFavoritesDemo.zip Favorites Demo
WebFormsFriendshipsDemo.zip FriendShips Demo
WebFormsRawQueryDemo.zip Raw Queries Demo
WebFormsGeoDemo.zip Geography Demo
WebFormsTrendsDemo.zip TrendsDemo
WebFormsUserDemo.zip User Demo
WebFormsOAuthDemo.zip OAuth Demo
WebFormsSavedSearchesDemo.zip Saved Search Demo
WebFormsListDemo.zip Lists Demo
WebFormsNotificationsDemo.zip NotificationsDemo
WebFormsSocialGraphDemo.zip Social Graph Demo
WebFormsTweetsDemo.zip Tweets Demo

Console Samples

File Description
Cannot resolve file macro, invalid file name or id. Search demos
Cannot resolve file macro, invalid file name or id. Status Timeline demos
Cannot resolve file macro, invalid file name or id. Status Tweets demos
Cannot resolve file macro, invalid file name or id. Direct Messages demos
Cannot resolve file macro, invalid file name or id. Help Demos
Cannot resolve file macro, invalid file name or id. Legal Demos
Cannot resolve file macro, invalid file name or id. Report Spam Demos
Cannot resolve file macro, invalid file name or id. Block Demos
Cannot resolve file macro, invalid file name or id. List Queries Demos
Cannot resolve file macro, invalid file name or id. List Commands Demos
Cannot resolve file macro, invalid file name or id. Console Account Queries Demos
Cannot resolve file macro, invalid file name or id. Console Favorites Demos
Cannot resolve file macro, invalid file name or id. Console FriendShips Demos
Cannot resolve file macro, invalid file name or id. Console Notifications Demos
Cannot resolve file macro, invalid file name or id. Console Raw Queries Demos
Cannot resolve file macro, invalid file name or id. Console Geography Demos
Cannot resolve file macro, invalid file name or id. Console Social GraphDemos
Cannot resolve file macro, invalid file name or id. Console TrendsDemos
ConsoleUserDemos.zip Console User Demos


Many more examples available via downloadable LINQ to Twitter source code.

Silverlight Samples

File Description
SilverlightSearchDemo.zip Perform a search query with Silverlight

WCF Samples

File Description
L2TWcfService.zip Shows how to perform a public status query via a WCF service

WPF Samples

Coming Soon

Web Forms VB Demos

File Description
WebFormsVBOAuthDemo.zip Web Forms OAuth Demo in VB

Last edited Jul 8, 2012 at 10:52 PM by JoeMayo, version 59

Comments

Yashavantha Dec 26, 2012 at 3:11 AM 
hi i am getting an server is not authorised exception in metrooauthoriser ..i too want an example asked by @sid_ga234

sid_ga234 Dec 17, 2012 at 10:36 AM 
@JoeMayo: Please upload one example with TwitterWithMedia, with Window 8 Store Application, where an user can tweet the images with FilePicker from local resources.

JoeMayo Oct 28, 2012 at 1:30 AM 
arjun_g - I just uploaded a MetroWinRtAuthorizer sample.

alejo86 - I uploaded the MvcOAuthDemo again.

erikkl2000 - my pleasure.

erikkl2000 Sep 29, 2012 at 8:51 PM 
Thank you for developing this and making it publicly available.

alejo86 Sep 26, 2012 at 11:34 AM 
Hi Guys, I am looking for the MVC OAuth Demo but it's not available, can you upload the source code again?

Thanks, Alejo

arjun_g Sep 9, 2012 at 4:06 AM 
I would like to know is there any other way to authorize the user other than PinAuthorizer for Windows 8 apps. I want to directly pass the authentication token to application rather than providing a pin to user.

JoeMayo Sep 5, 2012 at 4:17 AM 
Daqing, I just posted one WPF sample showing how to handle exceptions when disconnected from the Internet.

Daqing Aug 24, 2012 at 8:35 PM 
I am looking forward to the WPF Samples, when will they come out? thanks. :)

AndreMayo Jul 11, 2012 at 4:05 PM 
ForestHills- We now have MVC Demos, feel free to check them out, and their are definitely more to come.

JoeMayo Jun 7, 2012 at 5:14 AM 
ForestHills - Soon. The next batch of samples will all be MVC. BTW, there's an old MVC demo that's part of the source code, which you can view or download via the Source Code tab on this site. Just replace the Public query (deprecated) with a Search query and it should work fine.

@JoeMayo

ForestHills Jun 6, 2012 at 11:44 PM 
When can I expect MVC sample added?