Arne,
I'm using Orkut's sandbox.
You're saying the only reason this is not working is because there's a
bug on hasPermission?
if(opensocial.hasPermission(opensocial.Permission.VIEWER) ){
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonRequest('VIEWER'), 'viewer');
req.add(req.newFetchPersonAppDataRequest(opensocial.DataRequest.PersonId.VIEWER,
this.viewerFields), 'viewerData');
req.send(callback);
}else{
opensocial.requestPermission(opensocial.Permission.VIEWER, "Para
ver esse aplicativo vocĂȘ deve autorizar a leitura de alguns dados seus
do orkut, beleza?", checkForPermission);
}
On Apr 10, 1:49 pm, "Arne Roomann-Kurrik" <[EMAIL PROTECTED]>
wrote:
> Hi Vanessa,
>
> Which container are you using? On orkut, this is expected behavior
> (there's a bug in hasPermission, currently). For more information, please
> check out the orkut developer forum located
> athttp://groups.google.com/group/opensocial-orkut.
>
> Hope this helps,
> ~Arne
>
> On Thu, Apr 10, 2008 at 5:00 AM, Vanessa <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I'm having problems getting viewer object and viewer's data when the
> > viewer dos not have the app. Opensocial returns the request with
> > unauthorized error even though the result of
> > opensocial.hasPermission(opensocial.Permission.VIEWER) returns true.
>
> --
> OpenSocial IRC - irc://irc.freenode.net/opensocial
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---