Now it's only happening when I use &bpc=1

But I'm fairly sure (though not entirely) that it was also happening
without the flag 15 minutes ago.

Alex

On 3/5/08, Amar Gandhi <[EMAIL PROTECTED]> wrote:
>
>  Hey Alex,
>
>  We can't repro the bug on our end - but will try a few more tests.
>
>  Sorry but there's no good way to get the AppId programmatically.
>
>
>  -----Original Message-----
>  From: Alex Epshteyn [mailto:[EMAIL PROTECTED]
>
> Sent: Wednesday, March 05, 2008 5:23 PM
>  To: Amar Gandhi
>  Cc: Orkut Developer Forum; [EMAIL PROTECTED]; Peter Chane; Lane
>  LiaBraaten; [EMAIL PROTECTED]
>  Subject: Re: Serious error with gadgets.views.requestNavigateTo() call
>
>  Parsing that forwarded email, I think Amar is trying to say that you might
>  be able to do:
>
>   window.top.location = canvasPageUrlForAnotherUser
>
>  instead of
>
>   requestNavigateTo(canvas)
>
>  This sounds plausible.  Any way to avoid hardcoding the appId number in the
>  source code?  Is the appId available through some opensocial call?
>
>  I'll give it a try shortly.
>
>  Thanks,
>  Alex
>
>
>  On 3/5/08, Amar Gandhi <[EMAIL PROTECTED]> wrote:
>  >
>  >  Alex, do you know if using the technique below gets you over the
>  > RequestNavigateTo bug:
>  >
>  >  some info about Ids and Urls copy-pasted from a thread with an
>  > engineer at  ilike.
>  >
>  >  ------
>  >
>  >  AppId and Appinfo Urls
>  >
>  >  AppId - is a function of the app spec Url.  so if the Url changes,
>  > you get a  new id.  this is broken - we know.  here's the recommended
>  workaround:
>  >   - own your Dns (done - in case of ilike)
>  >   - redirect from something that will remain stable like
>  > http://company.com/orkut/appname to wherever you're hosting the app
>  > spec
>  >
>  >  The AppId will be the same across sandbox and www.
>  >
>  >  Absolute Url pattern for AppInfo page is
>  >   - http://sandbox.orkut.com/AppInfo.aspx?appId=<appId>
>  >   - http://www.orkut.com/AppInfo.aspx?appId=<appId>
>  >
>  >  Since the app needs to work seamlessly across sandbox and www, the
>  > recommended practice is to generate host-relative Urls like
>  > /AppInfo.aspx?appId=<appid>
>  >
>  >  userIds and profile and canvas Urls
>  >
>  >  There are two user ids - one in Url for all orkut pages and another
>  > in  opensocial APIs.  These are different - for reasons for security
>  > and  caution.
>  >
>  >  Orkut profile page Url pattern is /Profile.aspx?uid=<profileId>
>  > Canvas page for person that has app installed is
>  > /Application.aspx?uid=<profileId>&appId=<appId>
>  >  Going to canvas page for person that doesn't have app installed takes
>  > you to  error page.  we're considering improving it.
>  >
>  >  So, how to get the <profileId> from opensocialId?  You can extract it
>  > from  the PROFILE_URL which is available for all of an owner's
>  > friends.  You might  try something like:
>  >     var profileId =
>  >  person.getField(opensocial.Person.Field.PROFILE_URL).split("=")[1];
>  >
>  >  A frequently-asked question is how to work around the fact that
>  > RequestNavigate doesn't take a user param - so how do you navigate
>  > from your  app to another's user's canvas page that has the same app.
>  >
>  >  currently, you can do this by navigating the main window there by
>  > setting  window.top.location = canvasPageUrlForAnotherUser;
>  >
>  >  Creating app pages
>  >
>  >  For the U2 scenario, you will have to suffer thru the crufty
>  > appParams=<escaped blob of JSON params> technique.  So link to U2's
>  > artist  page would be something like:
>  >
>  >
>  > /Application.aspx?uid=<activityStreamCreator>&appId=<appId>&appParams=
>  > <escap
>  >  ed [artist: U2] >
>  >
>  >  Let me know if there's anything else that unblocks you still.  And
>  > again, we  know this is somewhat ugly and we will improve it.
>  >
>  >  if this is useful, we should put out a quick blogpost titled "Ids and
>  > Urls  in Orkut".
>  >
>  >
>  >  -----Original Message-----
>  >  From: Alex Epshteyn [mailto:[EMAIL PROTECTED]
>  >  Sent: Wednesday, March 05, 2008 4:48 PM
>  >  To: Orkut Developer Forum
>  >  Cc: [EMAIL PROTECTED]; Amar Gandhi; Peter Chane; Lane LiaBraaten;
>  > [EMAIL PROTECTED]
>  >  Subject: Re: Serious error with gadgets.views.requestNavigateTo()
>  > call
>  >
>  >
>  > Urgent: This is NOT fixed!
>  >
>  >  http://code.google.com/p/opensocial-resources/issues/detail?id=98
>  >
>  >  On Mar 2, 12:31 pm, Jerome <[EMAIL PROTECTED]> wrote:
>  >  > Yes, Alex has already filed a bug for this serious
>  >
>  issue.http://groups.google.com/group/opensocial-orkut/browse_thread/thread/.
>  >  ..
>  >  >
>  >  > Add your star on the bug in the tracker to bump this up an get an
>  > > email when it is  >
>  > fixed:http://code.google.com/p/opensocial-resources/issues/detail?id=9
>  >  > 8
>  >  >
>  >  > Jerome
>  >  >
>  >  > On Mar 2, 5:47 am, "[EMAIL PROTECTED]"
>  >  >
>  >  > <[EMAIL PROTECTED]> wrote:
>  >  > > Hi,
>  >  >
>  >  > > I have a link to canvas view (a function call below) for one of
>  > my  > > applications 'X' on my Profile.
>  >  >
>  >  > >  function gotoCanvas(dummyvar) {
>  >  > >        var canvas_view = new gadgets.views.View("canvas");
>  >  > >        gadgets.views.requestNavigateTo(canvas_view);
>  >  >
>  >  > > };
>  >  >
>  >  > > When i clicked(called the above function) from my application 'X'
>  > ,  > > it loaded the Canvas page of another application which was
>  > present  > > below the application 'X' in my profile.
>  >  >
>  >  > > I think this is a bug which needs some attention from Orkut side.
>  >  >
>  >  > > -Antony
>  >
>  >
>
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to