Hi JSON. Actually, calling viewer.getId() should return the OpenSocial ID, not the orkut ID. You can get the corresponding orkut ID by parsing the PROFILE_URL field, but the orkut ID is generally not very useful for applications unless you want to link directly to a user's profile or application view (in an orkut update, for example). Aside from this technique of parsing PROFILE_URL, there is no mapping function between the IDs.
- Jason On Sep 22, 8:11 pm, JSON <[EMAIL PROTECTED]> wrote: > Thanks, Jason! > > Another thing - we are storing Orkut UIDs - the newFetchPersonRequest > requires an opensocial ID. Given a opensocial ID, we can get an Orkut > UID using newFetchPersonRequest and then calling viewer.getId(). > > Is the other way also possible? - given an Orkut UID, to obtain > opensocial ID? > > We can definitely store opensocial IDs but I was wondering if there > was a way of doing that on fly. > > ~ JSON > > On Sep 22, 6:04 pm, Jason <[EMAIL PROTECTED]> wrote: > > > Yes -- just pass the user's ID into > > opensocial.DataRequest.newFetchPersonRequest instead of 'OWNER' or > > 'VIEWER'. If the user has your application installed, your app should > > be able to access all fields including name, profile URL, etc. > > > Of course, if you want to do this for many users, it's probably better > > to just store the thumbnail URLs and names on your back-end and fetch > > them all at once. > > > - Jason > > > On Sep 20, 5:36 pm, JSON <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > Is it possible for an app to query the container for profile fields of > > > a user who has added the app but is not currently on Canvas/Profile > > > Page? We have a scenario where we need to show the recent users of the > > > app and we stored only the UIDs in our DB - is it possible to > > > dynamically show a thumbnail/name to the 'later' users of the app. We > > > can store all the info when a user is interacting with the app but > > > we'd rather not. > > > > ~ JSON --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Orkut Developer Forum" group. To post to this group, send email to opensocial-orkut@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---