Hi Michael,
It seems that Orkut just provide us some information about the users. Even
if OpenSocial has the methods to get this info, the container is responsible
to define witch info will be available to out apps.
In our case, the info are ID, name, thumb and profile.
Regards,
Takamoto.
On Mon, Feb 25, 2008 at 5:46 AM, Michael Marth <[EMAIL PROTECTED]>
wrote:
>
> Hi,
>
> I try to access the viewer's or owner's birthday on Orkut, but I
> always get null. My code looks something like below. I CAN access
> gender and tumbnail, so I am a bit confused if this is an Orkut issue
> or with my code.
>
> Any comments are much appreciated
> Cheers
> Michael
>
>
> ...
> <Require feature="opensocial-0.7"/>
> ...
> function requestUserResponse(data) {
> var viewer = data.get("viewer").getData();
>
>
> // pic
> var thumb = viewer.getField(opensocial.Person.Field.THUMBNAIL_URL);
> // this works OK
>
> // age
> var dob =
> viewer.getField(opensocial.Person.Field.DATE_OF_BIRTH);
> var age = viewer.getField(opensocial.Person.Field.AGE);
>
> alert(age); // gives null
> alert(dob); // gives null
>
> };
>
> >
>
--
Takamoto
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Orkut Developer Forum" 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-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---