Launching Foursquare App from your Windows Phone App

January 6, 2015 • 2 min read

Foursqaure for Windows Phone registers an URI association which lets you launch it directly from your App. This API is undocumented, but I discovered it because of Cortana’s integration for local recommendations that uses Foursquare data.

Here’s how you can do it:

var foursquare = new Uri(“foursquare://venues/” + venue.id);
await Windows.System.Launcher.LaunchUriAsync(foursquare);

Simply add the ID of Foursquare venue at the end of the URI, launch it from your code and the Foursquare App will open up with the details about the Venue.

What if the user doesn’t have Foursquare App installed?
Windows Phone handles this scenario nicely and asks the user if they want to install the App.

I have implemented this feature in my App PlaceView, a Place of Interests finder App with Augmented Reality. With Foursquare integration, user can now view more details about Venue, or Check-in to the place.

If you’re using Foursquare’s Venue data in your App, then this is a nice new feature you must add.

Blog, RSS Feed