Sending Contacts a Link Using the ShareLinkTask

The share link task is used to enable the user to share a link on one or more social networks.

The ShareLinkTask allows you to specify a link URI, title, and message, as shown in the following excerpt:

ShareLinkTask task = new ShareLinkTask    {        LinkUri = new Uri("http://linkd.in/jnFoqE", UriKind.Absolute),        Title = "Check out the Windows Phone Experts group.",        Message = "Interested in Windows Phone development? "                    + " Join the Windows Phone Experts group on Linked-In!"    };task.Show();

When the task’s Show method is called, the built-in link sharing app is launched, allowing the user to select various social networks, such as ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.