Hi Bhing,

I tried to retrieve emails at Friendstar, but I couldn't get it. And I
confirmed that the field of email is not supported by friendstar using
my app.

http://widgets.friendster.com/968a0d994bcb2780161d8dfa80b5b56a?src=myapps&instance_id=1

I seem that an email address is most personal information and
retrieving the mail address becomes passive for a lot of SNS.

Regards,
Yoichiro

On Aug 27, 6:08 pm, Bhing <[EMAIL PROTECTED]> wrote:
> Hi Yoichiro,
>
> How about friendster? Does it support retreiving of Emails thru
> opensocial API?
> I also get NULL from this command:
>
> var emails = viewer.getField(opensocial.Person.Field.EMAILS);
>
> Thanks,
> Bhing
>
> On Aug 2, 11:08 am, yoichiro <[EMAIL PROTECTED]> wrote:
>
> > Hi fstmbt,
>
> > You can't retrieve the emails field, because its field is not
> > supported in Orkut.
>
> > The supported fields vary depends on each SNS. You will be able to
> > know which field is supported, if you try the following application
> > made by me:
>
> >http://sandbox.orkut.com/AppInfo.aspx?appId=797902171759
>
> > Regards,
> > Yoichiro
>
> > On Aug 1, 7:07 am, fstmbt <[EMAIL PROTECTED]> wrote:
>
> > > well... after some hours of understanding how i can test mine
> > > application (see prev question from me), i lost next 2 hours for
> > > understand how to get the list of viewer emails, but the only thing i
> > > got is the sad mood.
>
> > > here is the code that is supposed to work:
> > >         <script>
> > > gadgets.util.registerOnLoadHandler(init);
> > > function init()
> > > {
> > >         GetUsrData();
>
> > > }
>
> > > function GetUsrData() {
> > >         var req = opensocial.newDataRequest();
> > >         var opt_params = {};
>
> > > opt_params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS]
> > > = [opensocial.Person.Field.EMAILS];
>
> > > req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER,
> > > opt_params), 'viewer');
> > >         req.send(CallbackUsrData);
>
> > > }
>
> > > function CallbackUsrData(data)
> > > {
> > >         var ema =
> > > data.get("viewer").getData().getField(opensocial.Person.Field.EMAILS);
> > >         var viewerEmail = ema[0].getField(opensocial.Email.Field.ADDRESS);
>
> > >         document.getElementById('emails').innerHTML = viewerEmail;}
>
> > > </script>
> > >  <div id='main'>
> > >     <div id=emails>blah</div>
> > >  </div>
>
> > > but the object ema is null everytime. i have main e-mail and one ext
> > > email in orkut. but it is still null.
>
> > > the same code but with ADDRESS is working like a charm:
> > > <script>
> > > gadgets.util.registerOnLoadHandler(init);
> > > function init()
> > > {
> > >         GetUsrData();
>
> > > }
>
> > > function GetUsrData() {
> > >         var req = opensocial.newDataRequest();
> > >         var opt_params = {};
>
> > > opt_params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS]
> > > = [opensocial.Person.Field.ADDRESSES];
>
> > > req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER,
> > > opt_params), 'viewer');
> > >         req.send(CallbackUsrData);
>
> > > }
>
> > > function CallbackUsrData(data)
> > > {
> > >         var addresses =
> > > data.get("viewer").getData().getField(opensocial.Person.Field.ADDRESSES);
> > >                 var viewerLocality =
> > > addresses[0].getField(opensocial.Address.Field.LOCALITY);
>
> > >                 document.getElementById('emails').innerHTML =
> > > viewerLocality;}
>
> > > </script>
> > >  <div id='main'>
> > >     <div id=emails>blah</div>
> > >  </div>
>
> > > what the problem?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@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-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to