signIn Method

Ff748426.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.

Signs in the currently authenticated user to Messenger.

Script:  http://js.live.net/4.1/loader.js
Feature:  Microsoft.Live
Namespace:  Microsoft.Live
 

instance.signIn(status, callback);

Parameters

status
Type: PresenceStatus

An optional parameter that specifies the initial presence status of the user. If no value is specified, the initial presence status of the user will be online.

callback
Type: Microsoft.Live..::.SignedInCallback

An optional parameter that specifies the function to execute once the user has successfully signed in.

The following example demonstrates how to sign in a user to Messenger Connect with a default status of online.

//Get the messenger context.
messengerContext = wl.App.get_messengerContext();
//Sign in and set the user's status to appear online.
var status = Microsoft.Live.Messenger.PresenceStatus.online;
messengerContext.signIn(status, onSignedIn);

Windows Live Messenger Connect

Supported in: 4.1

Internet Explorer 8.0, Internet Explorer 7.0, Internet Explorer 6.0, Firefox 3.6, Firefox 3.5, Firefox 3.0, Firefox 2.0, Firefox 1.5, Chrome 4.0, Chrome 3.0, Chrome 2.0, Chrome 1.0, Safari 4.0, Safari 3.0

Show: