none
Grabbing contacts addresses

    Question

  • I know this question has been asked a bunch of times before but not recently, and there seem to be some contradictory information.

    I am trying to get a users contacts in order to import them into our system (a SaaS platform including business email) and add their details to our address book.

    https://apis.live.net/v5.0/me/contacts?access_token=blah returns all the information I want except email address, it only returns the email hash, which is completely useless for what I want.

    Another thread (http://social.msdn.microsoft.com/Forums/en-US/messengerconnect/thread/c6dcb9ab-aed4-400a-99fb-5650c393a95d) mentions that this is not possible, 'Getting all of contact's emails is not a scenario we offically support.'

    However this thread, http://social.msdn.microsoft.com/Forums/uk/messengerconnect/thread/1b325483-30f8-4390-bf76-913378fd65d7, suggests that you can get the infomation using the WL_Contacts.ViewFull scope, which is restricted and requires Microsoft approval, however the links provided do not provide information about how to get this approval.

    I am very keen to get this working as I have it working for Yahoo and Gmail, but at the moment we have more users signed up with hotmail addresses than any other service, so getting this same functionality for Hotmail/Live would be a massive plus.

    Thanks for your help

    Tuesday, February 14, 2012 4:12 PM

Answers

  • I'm sorry this has caused you wasted effort and we will look at making this clearer in the documentation in the future. The Live Connect APIs do not provide a mechanism for retrieving the email addresses of a user's contacts. 
    • Marked as answer by BenDeavin Wednesday, February 15, 2012 1:51 PM
    Wednesday, February 15, 2012 12:57 PM

All replies

  • I know this question has been asked a bunch of times before but not recently, and there seem to be some contradictory information.

    I am trying to get a users contacts in order to import them into our system (a SaaS platform including business email) and add their details to our address book.

    https://apis.live.net/v5.0/me/contacts?access_token=blah returns all the information I want except email address, it only returns the email hash, which is completely useless for what I want.

    Another thread (http://social.msdn.microsoft.com/Forums/en-US/messengerconnect/thread/c6dcb9ab-aed4-400a-99fb-5650c393a95d) mentions that this is not possible, 'Getting all of contact's emails is not a scenario we offically support.'

    However this thread, http://social.msdn.microsoft.com/Forums/uk/messengerconnect/thread/1b325483-30f8-4390-bf76-913378fd65d7, suggests that you can get the infomation using the WL_Contacts.ViewFull scope, which is restricted and requires Microsoft approval, however the links provided do not provide information about how to get this approval.

    I am very keen to get this working as I have it working for Yahoo and Gmail, but at the moment we have more users signed up with hotmail addresses than any other service, so getting this same functionality for Hotmail/Live would be a massive plus.

    Thanks for your help

    The thread containing information about a WL_Contacts.ViewFull scope is out of date. We do not support applications getting the email addresses of Hotmail or Messenger users via the Live Connect APIs. 
    Tuesday, February 14, 2012 7:21 PM
  • We do not support applications getting the email addresses of Hotmail or Messenger users via the Live Connect APIs. 

    Is there a way to do it via another API, or any other (non screen scraping means), I don't really understand the rational where a usesrs who has given permission for my app to view their contacts, and my app can't view their contacts, this shouild really be clearer in this page http://msdn.microsoft.com/en-us/live/hh561464/ where it clearly says 'Your apps can use the Live Connect APIs to create and read a Hotmail user's contacts.' I think it's not unreasonable to assume 'Contacts' includes email addresses, and I personally wasted a fair amount of time developing a solution that authenticated a user only to find the very infomation I wanted wasn't available.

    This seems especially odd as all major competitors offer this facility.

    Is there ANY way round this or do we just need to ailenate the largest proprotion of our uers and tell them to go and download the CSV and import that?

    Wednesday, February 15, 2012 9:53 AM
  • I'm sorry this has caused you wasted effort and we will look at making this clearer in the documentation in the future. The Live Connect APIs do not provide a mechanism for retrieving the email addresses of a user's contacts. 
    • Marked as answer by BenDeavin Wednesday, February 15, 2012 1:51 PM
    Wednesday, February 15, 2012 12:57 PM
  • help me,

    I can no longer retrieve the email addresses has a hotmail user

    cela fonctionnait avant mais plus maintenant

    can you tell me what has changed in recent months that it does not work

    the message that I give is: unable to get contact

    Friday, February 17, 2012 8:50 AM
  • Hello I'm checking that Linkeding is able to connect to my hotmail contacts, and also is able to get the emails.

    Linkeding is calling to this url to make the callback:

    https://consent.live.com/pp1200/Delegation.aspx?
    ps=Contacts.View&
    ru=https%3A%2F%2Fwww.linkedin.com%2Fgenie%2Fhandle%3F_ed%3D0_b3SvrmYfvRva3BledZduGwEqOWYHIGGBi1CnnhVZjK2Ps4kOXx_SjOcbBu5l6fYplgT2gsM8tHLTwwOP-zJK01PqFsbdPDIi6kPhO2lQqZI&
    pl=http%3A%2F%2Fwww.linkedin.com%2Fstatic%3Fkey%3Dprivacy_policy&app=appid%3D0000000044004F21%26ts%3D1330342235%26sig%3DIQJ4sLngQDHrVyqPaEWIo2jFPHrK7k%252BWjBxFamKc014%253D&rollrs=04&
    wa=wsignin1.0
    There is any way to get a pluss app to get user contacts mails?

    thanks

    Oskar

    Monday, February 27, 2012 11:58 AM
  • The Live Connect APIs do not provide a mechanism for retrieving the email addresses of a user's contacts. 
    The question that most developers have in response to this answer is "WHY?"  Like BenDeavin above, that's the only reason that I want to use the Windows Live Connect API -- to grab the contacts' email addresses.  The functionality is still available in the "Delegated Authentication SDK" (I know, because CloudSponge still uses that API and was able to pull out my contacts' addresses) and its documentation says:
    This functionality is provided only to support legacy applications. Live Connect incorporates features that provide equivalent functionality.
    In this case, removing the ability to retrieve email addresses is certainly NOT "equivalent functionality."  Wasted effort indeed.
    Monday, April 16, 2012 6:58 PM
  • Hi, I am also using the same MSN AI to grab user's contact details. And it is returning the following output. Since "email_hashes" is in Hashes format, I am not able to decode that. Can anyone tell me how do I decode this? { "id": "contact.49f4fa28000000000000000000000000", "first_name": Contact1, "last_name": null, "gender": null, "is_friend": false, "is_favorite": false, "user_id": null, "email_hashes": [ "6d5521f5eced6be2462b6d5b8eb95a851de9277a93b70e3ff2111bd98fad6b1a" ], "updated_time": "2011-08-24T07:55:13+0000" } Thanks,
    Thursday, June 28, 2012 12:28 AM
  • why I can get contact email using JS but get only email hashes on REST

    isdk.dev.live.com/dev/isdk/ISDK.aspx?category=scenarioGroup_hotmail&index=1
    Thursday, August 29, 2013 10:14 AM