newFetchPeopleRequest failing after user uninstalled app

1 view
Skip to first unread message

eduardorochabr

unread,
Apr 29, 2009, 10:47:16 AM4/29/09
to Orkut Developer Forum
My application has a tab showing recent activities from users. The app
requests my server which user IDs have the most recent activities,
then it uses newFetchPeopleRequest for retrieving info from these
users:

ids = [ <collection from my server > ]

var req = opensocial.newDataRequest();
req.add(req.newFetchPeopleRequest(opensocial.newIdSpec({
userId: ids,
groupId: 'SELF'
}), 'users');

req.send(function(response) {
var users = response.get('users').getData();
console.log(users)
})

This was working OK a couple of days ago, even if the collection
contained some ID which represented a user who had uninstalled the
app. Now, this is not working.

If there is such a user, the request returns a 404. For example, I
made a request with only two IDs, one with app and another without it.
I am getting this:

<HTML>
<HEAD>
<TITLE>Not Found</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Not Found</H1>
<H2>Error 404</H2>
</BODY>
</HTML>

Before, the server just ignored the second user and I could get info
from the first user.

Is the Orkut team aware of this? If so, is it really the intended
behavior? How could I do to get this functionality back?

Thanks.

eduardorochabr

unread,
Apr 29, 2009, 2:54:37 PM4/29/09
to Orkut Developer Forum
Besides that, "currentLocation" is not being retrieved.

req.add(req.newFetchPeopleRequest(opensocial.newIdSpec({
userId: ids,
groupId: 'SELF'
}), { profileDetail: [ 'currentLocation' ] }, 'users');

Ashok.s

unread,
Apr 30, 2009, 1:20:56 AM4/30/09
to opensoci...@googlegroups.com
Hi
 
How to get COUNTRY name  IN open social profile supported Fields.
 
if anybody knows Pls let me know how to get ?
 
thanks in advance


--
With Regards,
Ashokkumar.S,
09711560696.

Sachin Shenoy

unread,
May 5, 2009, 12:13:24 PM5/5/09
to opensoci...@googlegroups.com
Hi,

The 404 was served due to a bug, which I believe has been fixed now.

Could you check if it is working on orkut.com (not sandbox)?

Thanks,
Sachin

eduardorochabr

unread,
May 5, 2009, 12:49:47 PM5/5/09
to Orkut Developer Forum
Sachin,

It's working now, thanks for the feedback.

About retrieving "currentLocation", do you know something about that?
Some days ago it was working OK, the request retrieved the
currentLocation field, but now it's not.

Thank you.

On 5 maio, 13:13, Sachin Shenoy <therealsac...@gmail.com> wrote:
> Hi,
> The 404 was served due to a bug, which I believe has been fixed now.
>
> Could you check if it is working on orkut.com (not sandbox)?
>
> Thanks,
> Sachin
>

Shishir Birmiwal (Google)

unread,
May 5, 2009, 1:38:54 PM5/5/09
to Orkut Developer Forum
Hello,

An app can only have access to currentLocation for the viewer. We
allow users to set privacy levels on their address/current location
and hence this is not visible anymore.

Cheers,
Shishir

eduardorochabr

unread,
May 5, 2009, 5:14:47 PM5/5/09
to Orkut Developer Forum
OK, thanks for answering.

On 5 maio, 14:38, "Shishir Birmiwal (Google)"
Reply all
Reply to author
Forward
0 new messages