Hi Robson,

I'm using the application "OpenSocial Dev App (orkut)" in Orkut to test my
functions. And i discovery that my friends must have the application
installed so i can to access yours informations.

Now i only know this way to program and test my applications. do you have
other way?

Thank you.

On Tue, Aug 17, 2010 at 9:22 AM, Robson Dantas <[email protected]> wrote:

> Igo,
>
> Use firebug to debug these calls.
>
> - First thing to check is, of course, if you have friends on your list;
> - Then check your firebug to make sure you are not getting a 'access
> denied' during the call;
> - Last thing, disable profile flags, just to make sure at least friends are
> coming back;
>
> Let me know your results.
>
> Robson Dantas
>
> 2010/8/11 Igo Amauri <[email protected]>
>
>> Hi,
>> I'm new in developing applications for orkut and i'm with a little problem
>> to access my friends informations.
>> In my application i only want to show some informations like: Name,
>> Status, about me, age, but when i run it the fields return null, no
>> information.
>> my code:
>>
>> function request() {
>> var param = {};
>> param[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS]
>> =[opensocial.Person.Field.PHONE_NUMBERS,opensocial.Person.Field.STATUS,opensocial.Person.Field.ABOUT_ME,
>> opensocial.Person.Field.AGE];
>> var idFriends = opensocial.DataRequest.Group.OWNER_FRIENDS;
>>
>> req = opensocial.newDataRequest();
>> var objetoRequest = req.newFetchPeopleRequest(idFriends, param);
>> requisicao.add(objetoRequest, "req");
>> requisicao.send(response);
>> }
>>
>> function response(data) {
>>
>> var friends= data.get("req").getData();
>> friends.each(function(data){
>> var name= data.getDisplayName();
>> var aboutme= data.getField(opensocial.Person.Field.ABOUT_ME);
>> var status = data.getField(opensocial.Person.Field.STATUS);
>> var age=   data.getField(opensocial.Person.Field.AGE);
>> }
>>
>> What happened?
>> Is something wrong?
>> Can i have problem with permisson?
>>
>> Thank you.
>>
>> --
>> Igo Amaurí dos Santos Luz
>> 9º semestre - Engenharia de Computação -
>> Egresso do PET Engenharia de Computação
>> Integrante do Diretório Acadêmico - DEBUG
>> *Universidade Estadual de Feira de Santana*
>>
>> *Gtalk: *[email protected]
>> *E-mail: *[email protected]
>>
>>  --
>> 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]<opensocial-orkut%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/opensocial-orkut?hl=en.
>>
>
>  --
> 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]<opensocial-orkut%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/opensocial-orkut?hl=en.
>



-- 
Igo Amaurí dos Santos Luz
9º semestre - Engenharia de Computação -
Egresso do PET Engenharia de Computação
Integrante do Diretório Acadêmico - DEBUG
*Universidade Estadual de Feira de Santana*

*Gtalk: *[email protected]
*E-mail: *[email protected]

-- 
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.

Reply via email to