To invite users to provide permission to share their online presence, create a link to the following url using the following syntax:
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:
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:
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.
The following table shows the return URL parameters.
|
Parameter
|
Value
|
Example
|
| Id | ID of the user that opted in. This is only sent if the return result is Accepted. | 12BACD345678@apps.messenger.live.com |
| Result | One of the following: Accepted Declined NoPrivacyUrl | Accepted |