Custom Display Names in Messenger IM Control

Angus Logan posted about some improvements to the Messenger IM control that allows you to embed a “chat box” on your website and have conversations with your readers. The new improvements prompts to enter display name, when the user send a message that you'll see when they contact you. Up until this point, the default name that has been populated is […]

Angus Logan posted about some improvements to the Messenger IM control that allows you to embed a “chat box” on your website and have conversations with your readers. The new improvements prompts to enter display name, when the user send a message that you'll see when they contact you. Up until this point, the default name that has been populated is a localized version. To provide the display name, use the query string parameter “inviterDisplayName” and be sure to URL-encode the value that you provide. You can see this behavior in action in our Windows Live Messenger for Facebook application.

Here’re the steps:

  • go here and enable your account for IM control
  • go here and copy the iframe tag
    <iframe src="http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=dcc7f76fcd6c161a@apps.messenger.live.com&mkt=en-US" width="300" height="300" style="border: solid 1px black; width: 300px; height: 300px;" frameborder="0"></iframe>
  • add the following parameter &inviterDisplayName=Reading Your Blog (you should URL encode this – space is %20)
    <iframe src=”http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=dcc7f76fcd6c161a@apps.messenger.live.com&mkt=en-US&inviterDisplayName=Reading%20Your%20Blog” width="300" height="300" style="border: solid 1px black; width: 300px; height: 300px;" frameborder="0"></iframe>
  • Now when they chat, the default name will be Reading Your Blog

More infoDocumentation