Hi Robson Dantas, This is the way I am trying to fetch the details from API call:
function apiData() { var opt_params = { }; opt_params[opensocial.DataRequest.DataRequestFields.ESCAPE_TYPE] = opensocial.EscapeType.HTML_ESCAPE; opt_params[opensocial.DataRequest.PeopleRequestFields.MAX] = 500; // person count is limitted to 500. opt_params[opensocial.DataRequest.PeopleRequestFields.SORT_ORDER]= opensocial.DataRequest.SortOrder.NAME; opt_params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [opensocial.Person.Field.PROFILE_URL,opensocial.Person.Field.GENDER,opensocial.Person.Field.ADDRESSES,opensocial.Person.Field.DATE_OF_BIRTH]; var req=opensocial.newDataRequest(); req.add(req.newFetchPersonRequest("OWNER",opt_params), "owner"); req.add(req.newFetchPersonRequest("VIEWER",opt_params), "viewer"); var IdSpec=opensocial.newIdSpec({'userId':'OWNER','groupId':'FRIENDS'}); //requestting owner friends and owner object req.add(req.newFetchPeopleRequest(IdSpec,opt_params),"friends"); var idspec1 = opensocial.newIdSpec({ "userId" : "VIEWER", "groupId" : "FRIENDS" }); // requestting viewer friends and viewer object req.add(req.newFetchPeopleRequest(idspec1,opt_params), "viewer_friends_data"); opt_params[opensocial.DataRequest.PeopleRequestFields.FILTER] = opensocial.DataRequest.FilterType.HAS_APP; req.add(req.newFetchPeopleRequest(IdSpec, opt_params), 'has_app_owner_friends'); // requestting owner friends who are having the application req.send(resapiData); } I am using the version 8.0 and please let me know if any thing that should be changed. On Fri, Oct 8, 2010 at 5:26 PM, Robson Dantas <biu.dan...@gmail.com> wrote: > Fernando, technically what Prameela wrote is correctly. If the viewer > is your friend you can get information, otherwise viewer friends won't > work. > > Prameela, can you post your code or show your app URL to make a test > > Regards > > Robson Dantas > 2010/10/8, Fernando Torres <nandotor...@gmail.com>: > > please, read this snip from the official tutorial > > > > > http://wiki.opensocial.org/index.php?title=The_Persistence_API#Who_can_see_VIEWER_data.3F > > > > On Fri, Oct 8, 2010 at 8:30 AM, prameela raju > > <prameelachan...@gmail.com>wrote: > > > >> Is this updated recently, as I developed many apps with this > >> functionality. > >> Please let me know... > >> > >> > >> On Fri, Oct 8, 2010 at 4:57 PM, Fernando Torres > >> <nandotor...@gmail.com>wrote: > >> > >>> You can't do that. Your app is unable to get any information about the > >>> viewer if he doesn't have the app added in your own profile, even if it > >>> is > >>> viewing app in a friend profile. > >>> > >>> On Fri, Oct 8, 2010 at 8:13 AM, prameela raju < > >>> prameelachan...@gmail.com> wrote: > >>> > >>>> Hi Fernando, > >>>> > >>>> Thanks for responding. Viewer has not installed the > >>>> application yet but viewer can view the application from his friend's > >>>> profile right!! So I am trying for that functionality... > >>>> > >>>> On Fri, Oct 8, 2010 at 4:31 PM, Fernando Torres < > nandotor...@gmail.com > >>>> > wrote: > >>>> > >>>>> Hum... The viewer has the application installed at your profile? > >>>>> > >>>>> On Fri, Oct 8, 2010 at 1:35 AM, prameela raju < > >>>>> prameelachan...@gmail.com> wrote: > >>>>> > >>>>>> Hi, > >>>>>> > >>>>>> I am developing new app on orkut from sandbox.orkut.com, there is > an > >>>>>> issue while fetching the viewer and viewer friends data from > >>>>>> opensocial API > >>>>>> call. When I am trying to fetch the owner, owner_friends, viewer and > >>>>>> viewer_friends there is an error in data response for viewer and > >>>>>> viewer_friends: > >>>>>> > >>>>>> > >>>>>> {"id":"viewer","error":{"message":"forbidden: Get profile permission > >>>>>> denied.", > >>>>>> > >>>>>> "data":{"errorType":"noPermissions"},"code":403}}, > >>>>>> > >>>>>> {"id":"viewer_friends_data","error":{"message":"forbidden: Friend > >>>>>> permission not granted", > >>>>>> > >>>>>> "data":{"errorType":"noPermissions"},"code":403}} > >>>>>> > >>>>>> > >>>>>> I have an issue even while fetching has_app_owner_friends from API > >>>>>> call, this is returned as null. > >>>>>> > >>>>>> Please help me with this as soon as possible. > >>>>>> > >>>>>> -- > >>>>>> Thanks in Advance, > >>>>>> Prameela Dantuluri > >>>>>> > >>>>>> -- > >>>>>> You received this message because you are subscribed to the Google > >>>>>> Groups "orkut Developer Forum" group. > >>>>>> To post to this group, send email to > opensocial-orkut@googlegroups.com > >>>>>> . > >>>>>> To unsubscribe from this group, send email to > >>>>>> opensocial-orkut+unsubscr...@googlegroups.com<opensocial-orkut%2bunsubscr...@googlegroups.com> > <opensocial-orkut%2bunsubscr...@googlegroups.com<opensocial-orkut%252bunsubscr...@googlegroups.com> > > > >>>>>> . > >>>>>> For more options, visit this group at > >>>>>> http://groups.google.com/group/opensocial-orkut?hl=en. > >>>>>> > >>>>> > >>>>> -- > >>>>> You received this message because you are subscribed to the Google > >>>>> Groups "orkut Developer Forum" group. > >>>>> To post to this group, send email to > opensocial-or...@googlegroups.com. > >>>>> To unsubscribe from this group, send email to > >>>>> opensocial-orkut+unsubscr...@googlegroups.com<opensocial-orkut%2bunsubscr...@googlegroups.com> > <opensocial-orkut%2bunsubscr...@googlegroups.com<opensocial-orkut%252bunsubscr...@googlegroups.com> > > > >>>>> . > >>>>> For more options, visit this group at > >>>>> http://groups.google.com/group/opensocial-orkut?hl=en. > >>>>> > >>>> > >>>> > >>>> > >>>> -- > >>>> prami > >>>> > >>>> -- > >>>> You received this message because you are subscribed to the Google > >>>> Groups > >>>> "orkut Developer Forum" group. > >>>> To post to this group, send email to > opensocial-or...@googlegroups.com. > >>>> To unsubscribe from this group, send email to > >>>> opensocial-orkut+unsubscr...@googlegroups.com<opensocial-orkut%2bunsubscr...@googlegroups.com> > <opensocial-orkut%2bunsubscr...@googlegroups.com<opensocial-orkut%252bunsubscr...@googlegroups.com> > > > >>>> . > >>>> For more options, visit this group at > >>>> http://groups.google.com/group/opensocial-orkut?hl=en. > >>>> > >>> > >>> -- > >>> You received this message because you are subscribed to the Google > Groups > >>> "orkut Developer Forum" group. > >>> To post to this group, send email to opensocial-orkut@googlegroups.com > . > >>> To unsubscribe from this group, send email to > >>> opensocial-orkut+unsubscr...@googlegroups.com<opensocial-orkut%2bunsubscr...@googlegroups.com> > <opensocial-orkut%2bunsubscr...@googlegroups.com<opensocial-orkut%252bunsubscr...@googlegroups.com> > > > >>> . > >>> For more options, visit this group at > >>> http://groups.google.com/group/opensocial-orkut?hl=en. > >>> > >> > >> > >> > >> -- > >> prami > >> > >> -- > >> You received this message because you are subscribed to the Google > Groups > >> "orkut Developer Forum" group. > >> To post to this group, send email to opensocial-or...@googlegroups.com. > >> To unsubscribe from this group, send email to > >> opensocial-orkut+unsubscr...@googlegroups.com<opensocial-orkut%2bunsubscr...@googlegroups.com> > <opensocial-orkut%2bunsubscr...@googlegroups.com<opensocial-orkut%252bunsubscr...@googlegroups.com> > > > >> . > >> For more options, visit this group at > >> http://groups.google.com/group/opensocial-orkut?hl=en. > >> > > > > -- > > You received this message because you are subscribed to the Google Groups > > "orkut Developer Forum" group. > > To post to this group, send email to opensocial-or...@googlegroups.com. > > To unsubscribe from this group, send email to > > opensocial-orkut+unsubscr...@googlegroups.com<opensocial-orkut%2bunsubscr...@googlegroups.com> > . > > For more options, visit this group at > > http://groups.google.com/group/opensocial-orkut?hl=en. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "orkut Developer Forum" group. > To post to this group, send email to opensocial-or...@googlegroups.com. > To unsubscribe from this group, send email to > opensocial-orkut+unsubscr...@googlegroups.com<opensocial-orkut%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/opensocial-orkut?hl=en. > > -- prami -- You received this message because you are subscribed to the Google Groups "orkut Developer Forum" group. To post to this group, send email to opensocial-or...@googlegroups.com. To unsubscribe from this group, send email to opensocial-orkut+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/opensocial-orkut?hl=en.