3 messages in com.googlegroups.opensocial-orkut[orkut-developer] Re: How can I get i...
FromSent OnAttachments
Eder Trevisoli27 Jun 2008 08:25 
Jason27 Jun 2008 18:25 
Eder Trevisoli27 Jun 2008 18:56 
Subject:[orkut-developer] Re: How can I get information about a especific friend's profile ?
From:Eder Trevisoli (ede@gmail.com)
Date:06/27/2008 06:56:52 PM
List:com.googlegroups.opensocial-orkut

Ok !

Thanks a lot !!!!!!

On Jun 27, 10:26 pm, Jason <apij@google.com> wrote:

Hi Eder. Welcome to the orkut developer community! :)

Now, on to the business at hand. If you know your friend's OpenSocial ID (note that this is different from his orkut ID), you can fetch his profile information using:

var req = opensocial.newDataRequest(); req.add(req.newFetchPersonRequest('999999999'), friend); req.send(callback);

The callback function will be called when the friend's information is available. Note, however, that you won't be able to access any details about your friend (name, gender, current location, etc.) unless the friend has your application installed on his/her profile also. There is a way to easily get all of your friends who have your application installed:

var params = {}; params[opensocial.DataRequest.PeopleRequestFields.FILTER] = opensocial.DataRequest.FilterType.HAS_APP;

var req = opensocial.newDataRequest(); req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.OWNER_FRIENDS, params), friends); req.send(callback);

If you haven't already, you should take a look at the OpenSocial and orkut developer's guides as well as my article on data requests:

http://code.google.com/apis/opensocial/docs/0.7/devguide.htmlhttp://code.google.com/apis/opensocial/articles/datarequests/datarequ...http://code.google.com/apis/orkut/docs/orkutdevguide.html

Cheers! - Jason

On Jun 27, 8:25 am, Eder Trevisoli <ede@gmail.com> wrote:

Hello my friends!

I'm newby here..

How can I get information about a especific friend's profile ?

For example, I want to know information about a friend that ID profile is 999999999.

Please, help me..

Thanks!

Eder