How can I get Application Friends?

2 views
Skip to first unread message

Janardhan

unread,
Dec 18, 2008, 9:06:01 AM12/18/08
to Orkut Developer Forum
Hi Friends,

How can I get the Application Friends details
(Friends who are added the same application) ?

Thanks in advance.

Regards,
Janardhan..

Janardhan

unread,
Dec 19, 2008, 4:46:44 AM12/19/08
to Orkut Developer Forum
waiting for reply.. plzz.

Nick

unread,
Dec 19, 2008, 5:52:12 PM12/19/08
to Orkut Developer Forum
This should be exactly what you're looking for:
http://code.google.com/apis/orkut/docs/rest/developers_guide_protocol.html#RetrievingPersonWithQuery

Basically, you make a REST call to the fallowing endpoint: GET
http://sandbox.orkut.com/social/rest/people/userID/@friends?filterBy=hasApp&filterOp=equals&filterValue=true

Actually making REST calls is a whole other beast, I just finished
creating a couple sample .php files, if you need some code, reply, and
I'll post a few snippets to help you get started.

Nick

Prashant Patil­

unread,
Dec 22, 2008, 12:48:37 AM12/22/08
to opensoci...@googlegroups.com
Hi nick
I like to know the same. i.e how to get list of friends who added that app.
 I need it for my app "who's online". To add more stuff inside it.
--
With best Regards.
Prashant aka Orkuteer
http://en.blog.orkut.com/2007/11/thanks-from-orkuteer.html

Vijaya

unread,
Dec 22, 2008, 9:11:52 AM12/22/08
to Orkut Developer Forum
When building your app with the JavaScript APIs you can get the
friends who have the app installed information using the 'HAS_APP'
filter in your IdSpec params:

function request() {
var params = {
"max" : 100,
"filter" : "hasApp"
};

var idspec = opensocial.newIdSpec({
"userId" : "OWNER",
"groupId" : "FRIENDS"
});

var req = opensocial.newDataRequest();
req.add(req.newFetchPeopleRequest(idspec, params), "req");
req.send(response);
};


Reply all
Reply to author
Forward
0 new messages