Accessing Images On Flickr From An ASP.NET Website Using The Flickr.Net Library

Posted by: 4GuysFromRolla.com Headlines, on 16 Sep 2009 | View original | Bookmarked: 0 time(s)

Flickr is a popular photo-sharing website. Like many "Web 2.0" and "social" websites, Flickr includes a programmatic interface through which other programs and websites can view and manage photos, comments, groups, tags, and other Flickr assets. I recently started work on a website that offers its users a customized homepage where they can upload pictures, enter biographical and contact information, and integrate with other social websites, such as Flickr. Specifically, a user can supply their Flickr screen name and have a random collection of their public photos in Flickr appear on their customized homepage.

Flickr's API includes a number of methods, such as flickr.people.findByUsername and flickr.photos.getInfo, which return information about a particular Flickr user and a particular photo, respectively. To call one of these methods you need to send a properly formatted message to the Flickr API URL, which returns the results in a specified format. Flickr's API documentation provides all of the gory details.

If you're more interested in interacting with Flickr from an ASP.NET website and are less interested in the low-level details, you'll be delighted to know that there are mature, open source .NET libraries for accessing the Flickr API. With these libraries you don't need to know the ins and outs of the Flickr API; instead, you just work with the .NET library from your ASP.NET application and let it handle all the low-level formatting and message transport details.

This article explores the open source Flickr API library called Flickr.Net, which was created by Sam Judson and was used in my aforementioned project. Specifically, we'll look at how to create an ASP.NET website that displays a smattering of randomly selected pictures from a particular Flickr user, along with how to show a specific picture's comments (if any exist). And the complete code in both Visual Basic and C# is available for download at the end of this article. Read on to learn more!
Read More >

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: .NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 1519 | Hits: 24

Similar Posts

  • Data-binding Telerik CoverFlow for Silverlight + some Routed Commands goodness more
  • More Fun with C# 4.0 - Dynamic REST Service Calls more
  • Lesser known CS goodies: ImageInfo class more
  • Examining ASP.NET 2.0's Site Navigation - Part 4 more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD