I want to extract online friends for a user and I am using following
code for that
var req = opensocial.newDataRequest();
var viewerFriends = opensocial.newIdSpec({ "userId" : "VIEWER",
"groupId" : "FRIENDS" });
var opt_params = {};
opt_params[opensocial.DataRequest.PeopleRequestFields.FILTER ] =
opensocial.DataRequest.FilterType.ONLINE_FRIENDS;
req.add(req.newFetchPeopleRequest(viewerFriends, opt_params),
'viewerFriends');
req.send(onLoadFriends);
But, its extracting all the top friends and not online friends. I am
doing anything wrong?
Thanks,
Nimish
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenSocial Application Development" 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
-~----------~----~----~----~------~----~------~--~---