Using Live Connect to personalize apps (Windows Store apps using C#/VB/C++ and XAML)
You can personalize your Windows Store apps using C++, C#, or Visual Basic to offer additional features and value to your users by including Live Connect.
Watch this brief video for a look at how to use Live Connect features to personalize a Windows Store app.
The Live SDK lets your Windows Store apps built for Windows using C# or Visual Basic use Live Connect features to provide a personalized and connected experience for your customers. Windows Store apps built for Windows using C++ can use the C++ REST SDK (or the Windows::Web::Http::HttpClient class) and the Live REST API to access these same features. For more information, see Connecting to mobile services.
In this section, you can learn more about these Live Connect features:
The Identity API lets you personalize your Windows Store apps using C++, C#, or Visual Basic, and the single sign-on feature makes this personalization a seamless part of the Windows user experience.
If users are not already signed in to their Microsoft account before they open your Windows Store apps, you can open the Windows sign-in control by calling the Live SDK. If they are already signed in, they won't be prompted to sign in again. After they've signed in with their Microsoft account, your Windows Store apps can access their profile info.
Your Windows Store apps can access the profile info that users add to their Microsoft account, making your app their app. Some of the profile info that your app can access includes the user's first name, last name, gender, and birth date.
Using the SkyDrive API lets your app's users store their photos, videos, and documents in the cloud where they can access them from any device. Your Windows Store apps using C++, C#, or Visual Basic can save the user's personal content in the cloud to share with others and see on other devices, and your Windows Store apps can bring their cloud content into its own user experience. Users can share content in their SkyDrive with other users without requiring those users to be SkyDrive users or even to have a Microsoft account.
The SkyDrive API makes these sharing scenarios possible from your Windows Store apps:
Photos and videos
Enable users to select, upload, and share photos and videos that they have created in your app. Apps for editing images or video can connect to the cloud and enable users to touch up their photos and make them more dramatic with filters.
Enable users to access their documents, spreadsheets, and presentations from anywhere and from any device. Your app can help users create, access, and edit their documents in SkyDrive.
The Outlook.com API lets your Windows Store apps using C++, C#, or Visual Basic interact with the contacts and calendars that users keep in their Outlook.com accounts. Your app can use this info to enhance the connected experience for your users.
You can make your Windows Store apps more engaging to your customers by using the Outlook.com API to access their:
Connect your customers to other people they know who also use your app.
Give your customers a reason to return to your app by subscribing them to your app's shared calendars or by creating events that are available to your customers on all of their devices.
These steps describe how to get ready to use Live Connect in your Windows Store apps.
Prepare your Windows 8 development computer by:
- Downloading and installing the tools and SDK for developing Windows Store apps, if they aren't already installed. This download includes Microsoft Visual Studio and other tools.
- Downloading and installing the Live SDK.
Before you start developing a Windows Store app that uses Live Connect, you must have a Windows Store developer account. If you don't have one already, you can create one from your Dashboard.
Important Unlike what you do for other Windows Store apps, you must register your Windows Store apps that use Live Connect in your Dashboard before they can use any Live Connect features.
After your development computer has the necessary software and your accounts have been set up, visit the following topics for more info about how to use Live Connect features in your Windows Store apps.
Before your Windows Store app using C++, C#, or Visual Basic can use any Live Connect features, you must first register it in your Windows Store Dashboard and get a package identity.
Your Windows Store app using C++, C#, or Visual Basic can use Live Connect to access info from the user's Microsoft account profile by using the Live SDK.
In a C++ Windows Store app, you use the Live REST API directly to connect to Windows Live services. C++ apps can't use the Live SDK (Microsoft.Live.DLL) because that SDK is only for .NET projects. However, the C++ REST SDK, which is included in Microsoft Visual Studio, provides a convenient native C++ API for making REST calls. This tutorial shows how to use the C++ REST SDK to sign into SkyDrive, which is one of the Live services, and then upload and download photos. It also demonstrates a best practice for connected apps—users can sign in, sign out, and know their connected status at all times.
Follow these guidelines to help ensure an appropriate Microsoft account sign-in experience for users of your Windows Store apps using C++, C#, or Visual Basic.
Build date: 11/26/2013