Hi, stenoo,
Use this code:
function friendsOwnerResponse(dataResponse)
{
owner_friends = dataResponse.get('req').getData();
owner_friends.each(function(person)
{
[ ... ]
thumb = person.getField(opensocial.Person.Field.THUMBNAIL_URL);
profile = person.getField(opensocial.Person.Field.PROFILE_URL);
id = person.getId();
name = person.getDisplayName();
[ add vars to array, exemple ]
});
};
function friendsOwnerRequest()
{
var req = opensocial.newDataRequest();
var params = {};
params[opensocial.DataRequest.PeopleRequestFields.FILTER] =
opensocial.DataRequest.FilterType.HAS_APP;
req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.OWNER_FRIENDS,
params), "req");
req.send(friendsOwnerResponse);
};
friendsOwnerRequest();
Felipe Oliveira.
On Mon, Mar 16, 2009 at 2:02 PM, stenoo <[email protected]> wrote:
>
> Hi,
> How can I check if an user is an application's user?
> How can I check if two users are friends?
>
> Some example code please, thanks
>
> >
>
--
Atenciosamente,
Felipe Oliveira.
Cel.: (11) 8694-4253 / (11) 8027-3315
São Paulo - SP
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---