Hi Navaneeth. You should be able to use an array of OpenSocial IDs
with newFetchPeopleRequest() IF all of the specified persons have the
application installed themselves. Otherwise, the request will fail.
This is the expected result.
Unfortunately, it doesn't seem as if the HAS_APP filter works when
passing an array of arbitrary IDs, so there is no way at present to
retrieve only those persons who have the application installed. This
does appear to be a legitimate bug -- feel free to file a bug report
for this in the issue tracker, and I'll star it. Thanks!
- Jason
On Mar 19, 8:16 pm, Navaneeth Krishnan <[EMAIL PROTECTED]>
wrote:
> Jevs /Jason,
> Thanks ! I am able to retrieve information about a single user with the app
> installed using
> newFetchPersonRequest.
> But what I really want is a way to access get this information for a group of
> people, using an array of
> opensocial ids. That would be be much more efficient. Otherwise I will have
> to makenremote calls
> fornfriends.
> newFetchPeopleRequest using an array of opensocial ids seems to be the best
> option but doesn't work.
> Can this be filed as a bug ?
> Regards,
> Navaneeth
> Jason wrote:Hi Navaneeth. If you are fetching information for a single
> person, you can use newFetchPersonRequest as follows:
> req.newFetchPersonRequest('<OPENSOCIAL_ID>') For example, to fetch my
> personal profile, use the following: var req = opensocial.newDataRequest();
> req.add(req.newFetchPersonRequest('01495306580392390900'), "req");
> req.send(callback); Cheers! - Jason On Mar 18, 10:28 pm, Navaneeth
> Krishnan<[EMAIL PROTECTED]>wrote:Hi, In my application, I need to get the
> display name of a person, who is a friend of the owner. I already have the
> Opensocial Id of the person. Hence I am trying to use the
> newFetchPeopleRequest with an id
> argument.http://code.google.com/apis/opensocial/docs/0.7/reference/opensocial....
> However, this does not seem to work. Though the documentation says that an
> id and an array of ids are valid arguments, only the group references work.
> Is this a bug ? Is there a better way of getting this done (instead of
> iterating through all the user's friends) ? Regards, Navaneeth
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Orkut Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---