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
--~--~---------~--~----~------------~-------~--~----~
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