Hi Jason, I can confirm what you've said, works exactly as you've written. Thanks very much for your help, really really helpful.
Many thanks, R On Oct 7, 2:07 am, Jason <[EMAIL PROTECTED]> wrote: > Hi R. Your application should only be able to access information for > users who have the application installed. This means that for guest > users (users who are viewing an application on another profile but > don't have the app installed themselves), the VIEWER object will be > null, and hence, viewer ID, name, and other properties won't be > available. opensocial_viewer_id is being passed with all signed > requests regardless of whether the current user has the app, but this > is a bug: > > http://code.google.com/p/opensocial-resources/issues/detail?id=168 > > OWNER refers to the user who installed a given application while > VIEWER refers to the user using that application at a given point in > time. If user A installs the application, he represents the OWNER (and > possibly the VIEWER if he is interacting with the application on his > own profile). If user B visits user A's profile and begins using the > app, now he represents the VIEWER, but his information won't be > available to the app if he doesn't have it installed himself. In this > case, your application should show only OWNER data which is always > available. > > These articles have more on roles in OpenSocial: > > http://code.google.com/apis/opensocial/articles/persistence-0.8.htmlhttp://code.google.com/apis/opensocial/articles/datarequests/datarequ... > > Please let me know if you have any more questions on this. > > - Jason > > On Oct 6, 9:49 am, rd-london <[EMAIL PROTECTED]> wrote: > > > Hi, > > Wonder if anyone can help. > > > I have an 0.7 OpenSocial appln that is currently successfully > > performing a signed makeRequest, and for the application owner is > > returning the following all fine: > > > viewer.getId(); > > viewer.getDisplayName(); > > viewer.getField(opensocial.Person.Field.NAME); > > viewer.getField(opensocial.Person.Field.PROFILE_URL); > > viewer.getField(opensocial.Person.Field.THUMBNAIL_URL); > > > However, when someone who is a friend of the owner uses the > > application (and where the friend does *not* install the application), > > the output of getId() is zero, and the others are all empty. So it > > doesn't seem to work for a 'viewer'. What's very peculiar though is > > that the raw GET data sent by the signed makeRequest call contains > > what seems to be a valid "opensocial_viewer_id":"______" (did contain > > a sensible value). > > > This is all in the Sandbox. Can't use 0.8 as this also needs to run on > > other containers that only use 0.7. > > > Anyone any help with this? > > > Many thanks, > > R --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

