i am using this code to get the uid of the person-
id= owner.getField(opensocial.Person.Field.PROFILE_URL) ;id= id.substring(18);
Thanks ~@@[EMAIL PROTECTED] http://aakash-bapna.blogspot.com 



> Date: Wed, 5 Dec 2007 04:33:05 -0500> From: [EMAIL PROTECTED]> To: 
> [email protected]> Subject: [OpenSocial] Re: viewer ID 
> weirdness> > > Hi Rich,> > As said below, Orkut User Profile ID and 
> Person.getID() will return> different values. If you want to construct the 
> URL for the Canvas> page, use 
> viewer.getField(opensocial.Person.Field.PROFILE_URL). This> will return you 
> the Profile.aspx/uid=5833297930604905055. From here> it is easy to construct 
> the URL.> > Thanks,> Kalyan Lanka> > On Dec 5, 2007 4:13 AM, Kalyan Lanka 
> <[EMAIL PROTECTED]> wrote:> > You are right. The Orkut User ID and 
> Person.getID () are different.> > Also I don't see Feeds working. Did anybody 
> get the feeds working?> >> >> > On Dec 5, 2007 3:08 AM, dickleswonder <[EMAIL 
> PROTECTED]> wrote:> > >> > > Responding to myself, I guess I'm just realizing 
> now that there's no> > > way to access the Orkut user ID. So I don't see how 
> it's possible to> > > generate a URL to link from a profile to the canvas.> > 
> >> > >> > > On Dec 4, 11:42 pm, dickleswonder <[EMAIL PROTECTED]> wrote:> > > 
> > Hi, I'm trying to find the ID for the viewer, but there's some kinda> > > > 
> weird problem that's screwing me up:> > > >> > > > var req = 
> opensocial.newDataRequest();> > > > 
> req.add(req.newFetchPersonRequest('OWNER'), 'owner');> > > > 
> req.add(req.newFetchPersonRequest('VIEWER'), 'viewer');> > > > 
> req.send(function (data) {> > > > var owner = data.get('owner').getData();> > 
> > > var viewer = data.get('viewer').getData();> > > > uid = viewer.getId();> 
> > > > uid2 = viewer.getField(opensocial.Person.Field.ID);}> > > >> > > > 
> console.log(uid); // prints out '04193390327416532151'> > > > 
> console.log(uid2); // prints out '04193390327416532151'> > > >> > > > 
> However, I'm looking at the URL, and it 
> says:http://sandbox.orkut.com/Profile.aspx?uid=5833297930604905055&bpc=1> > > 
> >> > > > So my Orkut UID is not the same as my opensocial ID... but I need 
> the> > > > Orkut UID to construct URLs. How do I get it??> > > >> > > > 
> thanks,> > > > rich> > > > >> > >> >> > 
> _________________________________________________________________
Share life as it happens with the new Windows Live.Download today it's FREE!
http://www.windowslive.com/share.html?ocid=TXT_TAGLM_Wave2_sharelife_112007
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial API Definition" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to