Java Client and filtering friends with hasApp on Hi5

0 views
Skip to first unread message

Ronald Schouten

unread,
Nov 27, 2009, 4:30:11 AM11/27/09
to opensocial-client-libraries
I am unable to retrieve friends with the app installed on Hi5. My code
looks like this:

params = new HashMap<String, OpenSocialRequestParameter>();
params.put("startIndex", new OpenSocialRequestParameter("0"));
params.put("count", new OpenSocialRequestParameter("100"));
params.put("filterBy", new OpenSocialRequestParameter("hasApp"));

friends = client.fetchFriends(Long.toString(userId), params);

When I remove the filterBy param it returns all friends as expected,
but keeping it in returns null (although I know I have 1 friend that
is successfully retrieved through the JS API). Has anyone successfully
been able to retrieve friends with the app installed on Hi5? If so,
what are the correct parameters to pass in?

Thanks

Ronald Schouten

unread,
Nov 27, 2009, 5:41:44 PM11/27/09
to opensocial-client-libraries
Would the below code work on other opensocial containers like Orkut?

Jason (Google)

unread,
Nov 30, 2009, 2:53:33 PM11/30/09
to opensocial-cl...@googlegroups.com
Hi Ronald. Does this work for you in orkut? I'm not too familiar with hi5's REST/RPC implementation, and it's possible that it doesn't support the hasApp filter. I'm almost certain that this is supported in orkut, however, so let me know if this doesn't work there.

- Jason


--

You received this message because you are subscribed to the Google Groups "opensocial-client-libraries" group.
To post to this group, send email to opensocial-cl...@googlegroups.com.
To unsubscribe from this group, send email to opensocial-client-l...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/opensocial-client-libraries?hl=en.



Reply all
Reply to author
Forward
0 new messages