Hello, Amit.

Same thing around here... Did you find any solution?

[ ]!
SnowDog

On 9 set, 03:33, [EMAIL PROTECTED] wrote:
> Hello,
>
> Suddenly getting of owner and viewer info is not working in orkut
> sandbox. The same code is working in hi5 sandbox.
>
> It returns null for both owner and viewer.
>
> It was working perfectly before yesterday.
>
> The same code is working perfectly in code runner application.
>
> Please check the below code.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Module>
> <ModulePrefs title="GetOwnerViewerTest" >
> <Require feature="opensocial-0.7"/>
> </ModulePrefs>
> <Content type="html"><![CDATA[
>
> <script language="javascript">
>
> var  _owner,_owner;
> function loadOwnerAndViewerData()
> {
>     var req = opensocial.newDataRequest();
>
> req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.OWNER),
> "owner");
>     if (opensocial.hasPermission(opensocial.Permission.VIEWER))
>
> req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER),"viewer");
>     req.send(loadOwnerAndViewerDataComplete);};
>
> function loadOwnerAndViewerDataComplete(data)
> {
>     _owner = data.get("owner").getData();
>     if(data.get("viewer"))
>         _viewer = data.get("viewer").getData();
>
>     alert("_owner="+_owner.getId());
>     alert("_viewer="+_viewer.getId());};
>
> loadOwnerAndViewerData();
>
> </script>
>
> ]]></Content>
> </Module>
>
> Thanks,
> Amit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" group.
To post to this group, send email to opensocial-api@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-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to