MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

opensocial FetchPersonAppData and Owner.getId()

Last post 06-30-2009 2:09 AM by Anatoly. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 06-27-2009 5:27 AM

    • Jens
    • Not Ranked
    • Joined on 06-25-2009
    • Posts 1

    opensocial FetchPersonAppData and Owner.getId()

    Hi there,

    I'm kind of stuck on using the datastore api of opensocial. According to this. The returned Data is indexed by the user id. When I try to get the userid of the owner object on myspace, I get something like "myspace:123456" with the number being the required user id. So I can't access the fields with var mydata = data[owner.getId()]; Sure, I could parse the string returned by owner.getId but that would break the compability of that gadget with other opensocial containers, wouldn't it? Am I missing something?

     

    Thanks,

    Jens

  • 06-30-2009 2:09 AM In reply to

    Re: opensocial FetchPersonAppData and Owner.getId()

    you can use

    gadgets.views.getParams().ownerId

    hope this helps

    Filed under:
Page 1 of 1 (2 items)