4 messages in com.googlegroups.opensocial-orkutRe: [orkut-developer] Person Birthday
FromSent OnAttachments
Michael Marth25 Feb 2008 00:46 
Tiago Takamoto25 Feb 2008 09:10 
Sean02 Mar 2008 13:36 
Jason03 Mar 2008 11:10 
Subject:Re: [orkut-developer] Person Birthday
From:Tiago Takamoto (taka@gmail.com)
Date:02/25/2008 09:10:30 AM
List:com.googlegroups.opensocial-orkut

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 <mich@gmail.com> 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

};