Why we can´t fetch owner´s albums?

To reproduce the problem:

User 1:
Create an app and set proper permissions to grant access for albums.
Create an album through this created app using the album API.
Upload an photo into this created album using orkut.
Try to fetch the created album and the uploaded photo using the
fetchAlbums function.
Ok. It works.

User 2
Install the same app created for another user and set proper
permissions to grant access for albums.
Try to fetch albums from user 1 app page using the fetchAlbums
function.
It fails. You´ll see "forbidden: You can only access @viewer's albums.
AppId:395978473183" message in the response.
=(

function fetchAlbums() {
    var req = opensocial.newDataRequest();
    var idspec = opensocial.newIdSpec({'userId':'OWNER',
'groupId':'SELF'});
    req.add(req.newFetchAlbumsRequest(idspec), 'viewerAlbums');
    req.send(fetchAlbumsHandler);
};

Debug POST and RESPONSE:

POST:
[{"method":"albums.get","params":
{"userId":"@owner"],"groupId":"@self"},"id":"viewerAlbums"}]

RESPONSE:
[{"id":"viewerAlbums","error":{"message":"forbidden: You can only
access @viewer's albums. AppId:395978473183","data":
{"errorType":"noPermissions"},"code":403}}]

Thanks in advance.

Best Regards,
Bruno M V Souza

-- 
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.

Reply via email to