[orkut-developer] Re: Querying Profile Information

2008-09-23 Thread Jason
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 v

[orkut-developer] Re: Querying Profile Information

2008-09-22 Thread JSON
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 I

[orkut-developer] Re: Querying Profile Information

2008-09-22 Thread Jason
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 probab