11 messages in com.googlegroups.opensocial-apiRe: person.getField always returns null| From | Sent On | Attachments |
|---|---|---|
| Rakesh | 17 Apr 2008 03:13 | |
| mini | 17 Apr 2008 03:32 | |
| Rakesh | 17 Apr 2008 03:54 | |
| Meenu gupta | 17 Apr 2008 03:58 | |
| Rakesh | 17 Apr 2008 04:03 | |
| rana das | 17 Apr 2008 04:15 | |
| Grigolon | 17 Apr 2008 06:19 | |
| Rakesh | 17 Apr 2008 21:06 | |
| Meenu gupta | 17 Apr 2008 21:09 | |
| Rakesh | 19 Apr 2008 08:40 | |
| wess...@googlemail.com | 20 Apr 2008 02:34 |
| Subject: | Re: person.getField always returns null![]() |
|---|---|
| From: | Grigolon (egri...@gmail.com) |
| Date: | 04/17/2008 06:19:01 AM |
| List: | com.googlegroups.opensocial-api |
Rakesh, let's work first with the PROFILE_URL field. First you have to create a param to add a request for PROFILE_URL, like this:
var param = {}; param[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [opensocial.Person.Field.PROFILE_URL];
Then you use:
req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.VIEWER_FRIENDS, param), 'viewerFriends');
Now, to return all friends, you have to change the MAX filter param. Use this:
var param = {}; param[opensocial.DataRequest.PeopleRequestFields.MAX] = 900;
Now you can use both param to create your request:
var param = {}; param[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [opensocial.Person.Field.PROFILE_URL]; // return the correct links for profile url param[opensocial.DataRequest.PeopleRequestFields.MAX] = 900; // set a new value to MAX filter (default is 20)
If you have any more questions, please let me know.
On Apr 17, 8:16 am, "rana das" <rana...@gmail.com> wrote:
ve u worked on shinding container ? and i am trying to access my profile only ....... but i am not getting the way ........ can u help me out......
regards, rana
On Thu, Apr 17, 2008 at 4:34 PM, Rakesh <rake...@yahoo.com> wrote:
I am working on Orkut... May be other fields are not supported.
Got any clue why only a few friends are returned in newFetchPeopleRequest?
On Apr 17, 3:58 pm, "Meenu gupta" <rose...@gmail.com> wrote:
Actually all fields are not supported by all containers.
On Thu, Apr 17, 2008 at 4:25 PM, Rakesh <rake...@yahoo.com> wrote:
This works fine... But what about the other fields listed out in API documentation? Even the PROFILE_URL returns null.
Another problem I am facing is, when I do
req.add(req.newFetchPeopleRequest(opensocial.DataRequest.Group.VIEWER_FRIENDS),
'viewerFriends');
it returns me a list of only 20 friends in the callback function while I have more than 150 friends in my friendlist. How do I get the complete list of friends?
On Apr 17, 3:33 pm, mini <rose...@gmail.com> wrote:
Hello Rakesh,
Use following-
viewer.getField(opensocial.Person.Field.THUMBNAIL_URL);
On Apr 17, 3:14 pm, Rakesh <rake...@yahoo.com> wrote:
Person.getField always returns null for any parameter that I pass to the method. Could someone reason it out please?- Hide quoted text
-
- Show quoted text -- Hide quoted text -




