totally works.. thanks.

On Apr 28, 4:58 pm, "Dinesh Kumar Subramanian"
<[EMAIL PROTECTED]> wrote:
> Hi,
> As of now orkut does not allow to get email address.
>
> and further you may need to add params to get the profile details any.
> please refer to the code below
>
> var req = opensocial.newDataRequest();
> var opt_params = {};
> opt_params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [
>                                         opensocial.Person.Field.NAME,
>                                         opensocial.Person.Field.GENDER,
>                                         opensocial.Person.Field.PROFILE_URL,
>
> opensocial.Person.Field.THUMBNAIL_URL
>                                 ];
> req.add(req.newFetchPersonRequest('VIEWER',opt_params), 'viewer');
>
> Hope it helps
>
> Regards
> Dinesh
>
> On Mon, Apr 28, 2008 at 2:37 PM, [EMAIL PROTECTED] <
>
> [EMAIL PROTECTED]> wrote:
>
> > I am trying to get email and profile urls for the owner's friends. I
> > am doing something like this:
>
> > function request() {
> >  var req = opensocial.newDataRequest();
>
> > req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER),
> > "req");
> >  req.send(response);
> > };
>
> > function response(data) {
> >  var me =data.get("req").getData();
> >  var email =
> > me.getField(opensocial.Email.getField(opensocial.Email.Field.ADDRESS));
> >  var profileUrl = me.getFiled(opensocial.Person.Field.PROFILE_URL);
> > };
> > *(I am trying it on the viewer and if successful, will do it for the
> > friends.)
>
> > I am able to get the profile url using:
> > me.getField(opensocial.Person.Field.THUMBNAIL_URL);
>
> > I am getting back null for both of them (tried it in my app and
> > CodeRunner). Are they implemented in orkut?
> > Any help is appreciated. Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to