Hi Mathu, You're going to need to change the code from that example to fetch VIEWER_FRIENDS or OWNER_FRIENDS instead of just the VIEWER, and change the request from a newFetchPersonRequest to a newFetchPeopleRequest. Here are two links that should help give you some information:
OpenSocial identifiers: http://code.google.com/apis/opensocial/articles/datarequests/datarequests-0.7.html#identifiers Fetching multiple people: http://code.google.com/apis/opensocial/articles/datarequests/datarequests-0.7.html#fetchPeople Hope this helps, ~Arne On Aug 22, 10:11 pm, mathu <[EMAIL PROTECTED]> wrote: > sorry for the late reply... > > On Aug 13, 11:03 pm, "api.sh" <[EMAIL PROTECTED]> wrote: > > > Mathu, > > > There is a developer tool that allows you to debug/test your > > code:http://www.orkut.com/Application.aspx?appId=845795770537 > > > Here is a code snippet for fetching user profile details: > > > function response(data) { > > var viewer = data.get("viewer_profile").getData(); > > var aboutme = viewer.getField(opensocial.Person.Field.ABOUT_ME); > > var status = viewer.getField(opensocial.Person.Field.STATUS); > > var books = viewer.getField(opensocial.Person.Field.BOOKS); > > var movies = viewer.getField(opensocial.Person.Field.MOVIES); > > var img = viewer.getField(opensocial.Person.Field.THUMBNAIL_URL); > > > output(books+"hello"); > > output(movies+" whoa"); > > > }; > > > function request() { > > var req = opensocial.newDataRequest(); > > > var params = {}; > > params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = > > [ > > opensocial.Person.Field.ABOUT_ME, > > opensocial.Person.Field.BOOKS, > > opensocial.Person.Field.MOVIES, > > opensocial.Person.Field.THUMBNAIL_URL > > ]; > > > req.add(req.newFetchPersonRequest("VIEWER", params), > > "viewer_profile"); > > req.send(response);}; > > > request(); > > > On Aug 13, 9:23 am, mathu <[EMAIL PROTECTED]> wrote: > > > > hi guys , > > > > I am new to this open social and also i am not well good in > > > javascript... now i need code for fetching orkut users profile which > > > is affected my search condition > > > > please help me........ > > > > thanks in advance > > > > mathu > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---