Export (0) Print
Expand All

Using the JavaScript Library and Controls for Messenger Connect

Ff747461.note(en-us,MSDN.10).gifNote:
Current information about Live Connect is now available in the Windows Live Developer Center. The information in the following sections is provided for legacy purposes only.

You can use the Messenger Connect JavaScript Library and Controls to retrieve Windows Live data and to add real-time collaboration functionality that enables users to chat and send instant messages on your website.

Messenger Connect supports both declarative and imperative programming models.

In declarative programming, you use XML markup instead of coding. The Messenger Connect user interface (UI) controls are XML elements that enable you to quickly add functionality to your site without having to write any code. For details, see, Messenger Connect UI Controls.

In imperative programming, you write code that uses the Messenger Connect JavaScript Library. Messenger Connect is a Representational State Transfer (REST) service that you could access directly by sending HTTP requests. However, the JavaScript library provides a set of classes to simplify your development experience. For details, see Working with the JavaScript Library.

The JavaScript library also supports the concept of a context, which acts as the manager of all communications with Windows Live. When programming with the library you must first obtain a context, which you then use to send requests to Windows Live. Typically, you obtain the context after a user signs in successfully on your site.

Messenger Connect supports two contexts.

Context Description

Data context

The context that you use to work with Windows Live data such as contacts, profiles, and activities. For details, see Using the Data Context.

Messenger context

The context that you use to work with real-time data such as chat, instant messaging, and application messages. For details, see Using the Messenger Context.

For more information about the programming models, see Declarative vs. Imperative Programming (JavaScript Library).

Show:
© 2014 Microsoft