Are you sure you have the syntax right?  I'll admit I may be rusty on
some of the object literal notation syntax.  However, I tried doing
this:

req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.VIEWER_FRIENDS,
{ filter: opensocial.DataRequest.FilterType.HAS_APP }),
"viewerFriends");

or, if you want to retain the use of the constant, you could try this

var args = new Object(); //Associative array
args[opensocial.DataRequest.PeopleRequestFields.FILTER] =
opensocial.DataRequest.FilterType.HAS_APP;
req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.VIEWER_FRIENDS,
args), "viewerFriends");

Hope that works for you.

- Chris

On Nov 5, 9:45 am, Pedro Boschi <[EMAIL PROTECTED]> wrote:
> I am trying to retrieve a list of friends, but ONLY the ones who has
> my gadget, and I am having trouble with that.
>
> Here follows the part of my code:
>    var req = opensocial.newDataRequest();
>
> req.add(req.newFetchPeopleRequest(opensocial.DataRequest.PersonId.VIEWER),
> 'viewer');
>
> req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.VIEWER_FRIENDS,
> {[opensocial.DataRequest.PeopleRequestFields.FILTER],
> [opensocial.DataRequest.FilterType.HAS_APP]}), 'viewerFriends');
>    req.send(handleFunction);
>
> Does anyone know what is the problem?
>
> Thanks in advance.
> Pedro Boschi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial API Definition" 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-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to