Hi again,
Following Jason's request for application details and sample code ....
here is that information:

1. Application details: 
http://prod.sandbox.orkut.com/Main#Application.aspx?uid=7327092205898297204&appId=333087364122

2. Code snippet that only appears to be working on sandbox.orkut.com
and not www or prod.sandox:

Problem is: in fn getViewerAndOwnerDetails,
"globalOwnerProfileURL=owner.getField(opensocial.Person.Field.PROFILE_URL);",
globalOwnerProfileURL is returning null - *only* on www or prod.sandox
- on sandbox.orkut.com it is returning a valid value

Cheers
R


********* START OF CODE ***************

function getViewerAndOwnerDetails(dataResponse) {
    var owner = dataResponse.get('owner').getData();
    globalOwnerID=owner.getId();
    globalOwnerDisplayName=owner.getDisplayName();
 
globalOwnerProfileURL=owner.getField(opensocial.Person.Field.PROFILE_URL);

    var viewer = dataResponse.get('viewer').getData();

    if (viewer==null)   {
        // Guest mode
        globalViewerFlag=2;
    }   else {
            // Now either viewer or owner mode
            globalViewerID=viewer.getId();
            globalViewerDisplayName=viewer.getDisplayName();
        
globalViewerProfileURL=viewer.getField(opensocial.Person.Field.PROFILE_URL);
        
globalViewerThumbnailURL=viewer.getField(opensocial.Person.Field.THUMBNAIL_URL);
            if (globalViewerID!=globalOwnerID)  {
                // Viewer not owner.
                globalViewerFlag=1;
            }   else    {
                    // Owner and viewer
                    if (globalViewState==0)     {
                            // If canvas
                            makeSelectMenu();
                    }
            }
    }
    retrievePreviousCard(globalOwnerID);
}




function kickOffGetViewerAndOwnerDetails()      {
  // Get viewer and owner details
  var req = opensocial.newDataRequest();
 
req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER),
'viewer');
 
req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.OWNER),
'owner');
  req.send(getViewerAndOwnerDetails);
}
********* END OF CODE ***************



On Oct 28, 12:29 pm, rd-london <[EMAIL PROTECTED]> wrote:
> Hi,
>
> opensocial.Person.Field.PROFILE_URL appears to be returning null on
> both prod.sandbox.orkut.com *and* (most importantly) on live onwww.orkut.com
> (on an application that has just gone live) .... *but* .... appears to
> work fine on sandbox.orkut.com.
>
> que pasa?
>
> Please help.
--~--~---------~--~----~------------~-------~--~----~
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