Hi Jason,
Many thanks, that seemed to work fine.
I tried re-submitting the current application (which rather
wonderfully seemed to go live within 24 hours as far as I could tell)
using the same XML URL ending in "unis.co.uk/makeyourmark/os/orkut/
081027-53.xml"; but, this produced the following error:
"
There was a problem submitting your application.
* Gadget already in directory at
"
So, I've re-submitted at a new XML URL - ending in "unis.co.uk/
makeyourmark/os/orkut/081030-54.xml".
I trust that this means there won't now be two instances of the
application .... please tell me there will only be one instance .....
Thanks,
Kind regards,
R
On Oct 29, 10:06 pm, Jason <[EMAIL PROTECTED]> wrote:
> Thank you for posting your application's URL and code. :)
>
> Looking at your code, I'm pretty sure this is a sandbox bug and not a
> production issue. Several months ago, orkut stopped returning the
> PROFILE_URL field by default. You should still be able to access it if
> you request it explicitly:
>
> 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);
>
> Notice that I'm passing an additional params object into
> newFetchPersonRequest above. Thank you for calling this to my
> attention, but please use the code above to get the profile URL in
> prod.sandbox and production as this is the default behavior.
>
> - Jason
>
> On Oct 28, 2:11 pm, rd-london <[EMAIL PROTECTED]> wrote:
>
> > 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=7327092205898...
>
> > 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 [email protected]
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
-~----------~----~----~----~------~----~------~--~---