This is all fine and dandy, and as i mentioned in another mail i send
to the list some hours ago, this is the work-around i'm using too.
However it is good to explicitly mention again that this is a _hack_
that will _only_ work on orkut.
I'm presuming though that since its on the wish list to make a proper
solution for this, such hacks will never have to go into production
environments (which would be a shame, since you'd have to make such a
hack per social site, since they all formulate their url's differently).
Just mentioning it so that people don't get wrong expectations or the
wrong impression of what this type of hack is meant for.
On Dec 5, 2007, at 10:33 AM, Kalyan Lanka wrote:
>
> 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
>>>>>
>>>
>>
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---