3 messages in com.googlegroups.opensocial-orkut[orkut-developer] Re: How can I get i...| From | Sent On | Attachments |
|---|---|---|
| Eder Trevisoli | 27 Jun 2008 08:25 | |
| Jason | 27 Jun 2008 18:25 | |
| Eder Trevisoli | 27 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:
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Orkut
Developer Forum" group.
To post to this group, send email to open...@googlegroups.com
To unsubscribe from this group, send email to
open...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---




