MySpace Developer Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

newFetchPersonRequest

Last post 05-09-2008 10:22 AM by barclay. 12 replies.
Page 1 of 1 (13 items)
Sort Posts: Previous Next
  • 03-21-2008 7:02 PM

    newFetchPersonRequest

    Is there a way for me to just do a person request only having an ID that is not the viewer or owner id? If not, wtf?! 

  • 03-22-2008 3:04 AM In reply to

    Re: newFetchPersonRequest

    No, 'cause OpenSocial specs say so.

  • 03-22-2008 9:34 AM In reply to

    Re: newFetchPersonRequest

     Probably not implemented for MySpace, but works in Orkut for user who installed the app:
    req.add(req.newFetchPersonRequest(usrid), "user");

    Please check OpenSocial Tips and Tricks for full example

    http://webwidgets.ning.com/forum/topic/show?id=1472141%3ATopic%3A3922 

    Cheers, Jevs

  • 03-22-2008 11:37 AM In reply to

    Re: newFetchPersonRequest

    I have been trying to get this to work too, but so far no luck. The spec for newFetchPeopleRequest actually says that the parameter can be an ID or array of IDs, but it doesn't work.

    This is key to making any app social. That people can see basic info like name and thumnail of other users besides their friends is essential for many things. Playing games with other users, message board discussions, etc.

    function getPeopleInfo() {
      var req = opensocial.newDataRequest();
      var ids = [6221];
      req.add(req.newFetchPeopleRequest(ids), 'people');
      req.send(onLoadPeople);
    }
    function onLoadPeople(dataResponse) {
      var p = dataResponse.get('people').getData();
      p.each(function(person) {  // this throws an error
        alert(person.getDisplayName());
      });
    }
    
  • 03-22-2008 2:36 PM In reply to

    Re: newFetchPersonRequest

    No... open social spec doesn't say that.. it says you can use an ID. MySpace seems to only allow viewer or owner
  • 03-22-2008 2:38 PM In reply to

    Re: newFetchPersonRequest

    Yeah, that is what i tried: req.add(req.newFetchPersonRequest(usrid), "user"); It failed though.
  • 03-22-2008 4:18 PM In reply to

    Re: newFetchPersonRequest

    From the 0.7 OS specs

    String idSpec - An ID, array of IDs, or a group reference; the supported keys are VIEWER, OWNER, VIEWER_FRIENDS, OWNER_FRIENDS, or a single ID within one of those groups

    The supported strings (used as keys) are only VIEWER, OWNER, etc. Under the specs, an Id that is not one of those keys isn't supported.

  • 03-22-2008 4:20 PM In reply to

    Re: newFetchPersonRequest

    oh sorry, read that wrong :)
  • 03-22-2008 4:45 PM In reply to

    Re: newFetchPersonRequest

    You're not the first to ask; this has been something people have brought up since the first week the platform became available to developers, but MySpace has never mentioned changing it. My opinion, it's a matter of percieved privacy -- yes, technically, DisplayNames and thumbnails are always publicly viewable, but I guess MySpace figures that if people start seeing their picture show up on any profile they visit, in Apps they haven't installed, they'll figure that somehow their privacy has been compromised.

  • 03-22-2008 7:15 PM In reply to

    Re: newFetchPersonRequest

    Well that sorta makes sense. But then apps have to store everyone's name as well or loop through all of the friends every time they want to get a name?
  • 03-22-2008 8:54 PM In reply to

    Re: newFetchPersonRequest

    newFetchPersonRequest seems to only support viewer or owner, but newFetchPeopleRequest should support IDs

     An ID, array of IDs, or a group reference used to specify which people to fetch; the supported keys are VIEWER, OWNER, VIEWER_FRIENDS, OWNER_FRIENDS, or a single ID within one of those groups.

     

  • 05-03-2008 8:44 AM In reply to

    • Aakash
    • Not Ranked
    • Joined on 03-02-2008
    • Posts 3

    Re: newFetchPersonRequest

     neither newFetchPeopleRequest or newFetchPersonRequest are working on Myspace for id's like '123456'

    newFetchPersonRequest works perfectly on orkut and hi5 for any id's provided user has installed app.

    can anyone provide a working example for this or any solution to fetch details for single user id's

  • 05-09-2008 10:22 AM In reply to

    Re: newFetchPersonRequest

    Ran into this also... Oddly, you're able to get around this using the RESTful API which will happily return you data on a user (providing they've installed your app).

    Seems pretty broken, and MDP's stance has been "we don't support that" (which makes absolutely no sense). But whatever.

Page 1 of 1 (13 items)