Hi everyone. Last evening's sandbox push introduced a small change in
the way PROFILE_URL is accessed -- instead of being returned with the
requested person/people by default, you must now specifically request
the field using the PROFILE_DETAILS parameter. The following
CodeRunner snippet should output the profile URL of the owner.

http://opensocial-resources.googlecode.com/svn/samples/coderunner/trunk/index.html

/**
 * CODERUNNER SAMPLE CODE
 */
function request() {
  var params = {};
  params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] =
[opensocial.Person.Field.PROFILE_URL];

  var req = opensocial.newDataRequest();

 
req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.OWNER,
params), "req");
  req.send(response);
};

function response(data) {
  var owner = data.get('req').getData();
  output(owner.getField(opensocial.Person.Field.PROFILE_URL));
  gadgets.window.adjustHeight();
};

request();

/* END OF SAMPLE CODE */

We'll post a more complete set of bug fixes/changes to the orkut
developer blog shortly.

http://orkutdeveloper.blogspot.com/

- Jason

On Apr 4, 1:07 am, paps <[EMAIL PROTECTED]> wrote:
> Hi ,
>     one new problem since 11 am IST today m facing is ..
>    opensocial.Person.Field.PROFILE_URL returns null..
>
>     Any one else facing same problem...
>     PLease reply G-guys..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@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-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to