Inviting Users to Use the IM Control

Started by thiruvasagamani, Jan 24, 2009, 08:07 PM

Previous topic - Next topic

thiruvasagamani

Inviting Users to Use the IM Control

You can invite users to provide permission to display their online presence, and use the Windows Live Messenger IM Control. This is done by adding a link to the signup page. When a user clicks the signup link, the user is taken to a Windows Live Messenger settings page. Once signup is complete the user is directed back to the URL that you specified in the signup link. You can then use the user's ID to query for the user's online presence, and embed an instance of the IM Control in your Web site for site visitors to use.
The Signup URL

To invite users to sign up, create a link to the following url using the following syntax:
Copy Code

http://settings.messenger.live.com/applications/websignup.aspx?returnurl=[URL]&privacyurl=[URL]


where returnurl is the URL on your site that the user will be returned to, and privacyurl is the URL for your site's privacy page. You must provide a privacy policy for your site in order to use this service.

For example:
Copy Code

http://settings.messenger.live.com/applications/websignup.aspx?returnurl=http://example.com/return.aspx&
privacyurl=http://example.com/privacy.htm


When signup is complete, the signup page then calls the return URL, supplying the user's ID and the result status as parameters as shown in the following example:
Copy Code

http://example.com/return.aspx?Result=Accepted&id=12BACD345678@apps.messenger.live.com


This ID can be used with both the Windows Live Presence API and the Windows Live Messenger IM Control.

Source : MSDN
Thiruvasakamani Karnan