Sergio,

Here is the documentation, anyway:

http://wiki.opensocial.org/index.php?title=Opensocial.DataRequest_(v0.8)#opensocial.DataRequest.FilterType.HAS_APP

Robson Dantas

2010/1/27, Dhaval Pancholi <dhavalyo...@gmail.com>:
>
>
> Hi Sergio  below code would get you all friends who have application
>
> in the  request function
>
> var app_friend_params = {};
> app_friend_params[opensocial.DataRequest.PeopleRequestFields.FILTER] =
> opensocial.DataRequest.FilterType.HAS_APP
>   req.add(req.newFetchPeopleRequest(opensocial.newIdSpec({"userId" :
> "OWNER", "groupId" : "FRIENDS"}), app_friend_params), "ownerFriends");
>
> in response function
>
>  var ownerFriends = data.get('ownerFriends').getData();
>
>                                 ownerFriends.each
>                                 (
>                                       function(friend)
>                                       {
>                                         friends_array.push(friend.getId());
>                                       }
>                                 );
>                                 friends_array_length=friends_array.length;
>
> here in ownerFriends you have all the friends of owner who have added
> the application
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Orkut Developer Forum" group.
> To post to this group, send email to opensocial-or...@googlegroups.com.
> To unsubscribe from this group, send email to
> opensocial-orkut+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-or...@googlegroups.com.
To unsubscribe from this group, send email to 
opensocial-orkut+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en.

Reply via email to