Hi Rohit,
I have not had to use the requestPermission yet, and I am not even
sure if this is working yet or not.
I am not sure to fully understand what issue you are trying to resolve
with the requestPermission. If there is a gadget on A's profile, and B
is accessing A's profile, the gadget will be displayed.
If you are having issue with the gadget accessing application data
owned by the profile owner, here is how to do that:
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonAppDataRequest(opensocial.DataRequest.PersonId.OWNER,
'stuffYouWantToRetrieve'), 'ownerData');
req.send(callback);
If you are trying to fetch data for the owner friends, I've noticed
something weird a few days ago. opensocial.DataRequest.PersonId.OWNER
was not working, so I had to use the string 'OWNER_FRIENDS' instead.
If I did not understand the problem, please post an URL to your code
such as developers and Googlers can provide more accurate feedback.
I hope this helps,
Jerome - LjmSite
On Feb 14, 11:12 am, Rohit Kumar <[EMAIL PROTECTED]> wrote:
> Any help??
>
> On Feb 13, 7:14 pm, 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- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---