Locked Show users picture next to comment

  • 02 Februari 2010 9:41
     
     
    Hi

    On my site users can comment on various books.
    When a user adds a comment I would like to show their picture next to their comment.

    As I understand it, I can show anyone's picture by adding their CID in the
    <msgr:display-picture cid="ADD_HERE"></msgr:display-picture> tag.
    However, with me this only works if the user who is viewing the picture is befriended with the user shown and both users are online.

    Is there some kind of consent I need to ask the user who's picture I want to show?

    This site show's any picture from my contactlist wether online or not when testing the msgr:display-picture tag: http://messenger.mslivelabs.com/ 
    This blog also explains I just need to add the CID: http://blogs.msdn.com/messenger/archive/2009/04/03/better-experiences-around-user-generated-content.aspx

    What am I doing wrong?

    Very greatfull for you help.

Semua Balasan

  • 02 Februari 2010 16:02
    Pemilik
     
     Saran Jawaban

    You can show a user's display picture if the user has consented your application. You can also allow two non-buddy users who both consented to your site to chat.
    Please refer this document for detail: http://msdn.microsoft.com/en-us/library/dd570040.aspx

    Thanks,
    Lin

    • Disarankan sebagai Jawaban oleh Siebe Tolsma 04 Februari 2010 18:44
    •  
  • 05 Februari 2010 10:02
     
     
    Thanks for your reply, but I did all that.

    - I used the sample code CreateApplicationContactList() to generate the contact list.
    - Generated the signuture with SignApplicationContactList().
    - Used the msgr:app-contacts tag.
    - And finally the msgr:display-picture tag.

    When I load this in my Firefox web developer toolbar it says "no element found" for http://messenger.services.live.com/actions/getapplicationcontactsinfo/
    Adding the msgr:bar I get: Error message: There's a problem with this site. You might not be able to see your full contact list.

    Maybe I'm not asking the right consent (Contacts.View) because I can't find a list of possible consent queries.
    But even so I shouldn't have error messages if the user didn't consent.

    I just want to show pictures of users visiting my site but this seems very complex for what it's worth.
  • 05 Februari 2010 19:12
    Pemilik
     
     Jawab

    The consent should be Messenger.SignIn.
    If you follow the sample (MakeYouWebSiteSocial) for the consent flow, clicking on the "sign in" button on the Messenger Bar, the popup delegation.aspx page will bring back the consent token with the right permission once the user consented the web site. 

    Alternatively, you can choose not to signing the contact list by changing the settings on https://consent.messenger.services.live.com/applicationsettings.aspx?appid={appid}, but you need to evaluate the risk for not controlling this. Then you can simply use msgr:display-picture tag.

    Thanks,
    Lin

  • 03 September 2010 0:22
     
     

    The consent should be Messenger.SignIn.
    If you follow the sample (MakeYouWebSiteSocial) for the consent flow, clicking on the "sign in" button on the Messenger Bar, the popup delegation.aspx page will bring back the consent token with the right permission once the user consented the web site. 

    Alternatively, you can choose not to signing the contact list by changing the settings on https://consen.messenger.services.live.com/applicationsettings.aspx?appid={appid}, but you need to evaluate the risk for not controlling this. Then you can simply use msgr:display-picture tag.

    Thanks,
    Lin


    It has wasted me a lot time already, Finally got it, Here is also the same case.
  • 03 September 2010 9:47
     
     
    According to this thread , I cannot choose not to sign the application contact list.