Windows Live Messenger Library Tutorial

This section contains a series of samples that cover some basic Windows Live Messenger Library programming tasks. All sample code was written using only JavaScript and HTML. You can use the development environment or text editor of your choice to edit the sample code.

A live example of the tutorial is available at https://messenger.mslivelabs.com/samples/HelloWorld/JavaScript/WebSite/default.htm.

Prerequisites

Before running the sample applications, you need to have the following.

  • Two Windows Live ID accounts (one designated as sender, one as receiver).
  • Windows Live Messenger Client installed on your test computer. You can get it at https://get.live.com/messenger.
  • A Web site with a domain to host the sample application.
  • A test computer to run the sample Web site.
To Run the Sample
  1. Upload the project files to your Web server.
  2. Log in to Messenger client with the Windows Live ID account that you have designated as the receiver.
  3. Navigate to Default.htm on your Web site.
  4. In the sample application, log in with the Windows Live ID account that you have designated as the sender. The sender should be a member of the receiver's contact list, and vice-versa. You can use the Windows Live Messenger Client to do this.

In This Section

Hosting the Sign-in Control

Managing Presence

Exchanging Messages