Hi Jason,

but then the function requestshareapp should work...

2008/2/16, Jason <[EMAIL PROTECTED]>:
>
>
> Hi Rohit. Actually, I'm pretty sure your problem is unelated to
> opensocial.requestPermission().
>
> Due to user privacy and security concerns, the Orkut sandbox no longer
> allows your application to access viewer data (including display name,
> ID, etc.) unless the viewer has the same application installed on his
> own profile.
>
> To get around this, I suggest programming separate interfaces for the
> owner and viewer. Say you are building some a game using the
> OpenSocial API -- the owner should be able to see and play the game
> while the viewer (assuming he isn't also the owner, of course) can
> only see the owner's high score and perhaps a preview of the gameplay,
> just as long as viewer information isn't required due to the concerns
> listed above. I'm sorry for the bad news, but this limitation should
> be fairly easy to work around.
>
> Cheers!
> - Jason
>
> On Feb 13, 6:14 am, Rohit Kumar <[EMAIL PROTECTED]> wrote:
> > Could somebody help me with usage of opensocial.requestPermission. I
> > have an application which person A has installed and person B is
> > trying to view that application in A's profile. The viewer object is
> > not available.
> >
> > opensocial.hasPermission(opensocial.Permission.OWNER) returns me :
> > false
> >
> > opensocial.hasPermission(opensocial.Permission.VIEWER) returns me :
> > true
> >
> > I have functions
> >
> > function requestPermission() {
> >   var reason = "Permission to view gadgetr of Viewer";
> >   opensocial.requestPermission(opensocial.Permission.VIEWER, reason,
> > testFunction);
> >
> > }
> >
> > function requestOwnerPermission(){
> >   var reason = "Permission to view gadgetr of Owner";
> >   opensocial.requestPermission(opensocial.Permission.OWNER, reason,
> > testFunction);
> >
> > }
> >
> > function testFunction(responseObj){
> >  // responseObj
> >
> > }
> >
> > responseObj  returned to me as : remote_iframe_0
> >
> > No idea as to what 'remote_iframe_0' is.
> >
> > Still after the requestPermissions call the viewer object is not
> > returned. I need the viewer id (A's id ) on B's application frame.
> >
> > Please let me know if i have done something wrong in the code.
> >
> > Thanks,
> > Rohitwww.toostep.com
> >
>

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