When I use opensocial 0.8, my code is follow <code> var opts = {}; opts[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [opensocial.Person.Field.AGE, opensocial.Person.Field.NAME]; opts[opensocial.DataRequest.PeopleRequestFields.SORT_ORDER] = opensocial.DataRequest.SortOrder.NAME; opts[opensocial.DataRequest.PeopleRequestFields.FILTER] = opensocial.DataRequest.FilterType.HAS_APP; function initData() { var req = opensocial.newDataRequest(); req.add(req.newFetchPeopleRequest('VIEWER_FRIENDS', opts), 'viewerFriends'); req.send(render); } </code> When I use openscial 0.9, I didn't know what will I do use osapi method (container is shindig php version). <code> ============= var opts = {}; opts[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [opensocial.Person.Field.AGE, opensocial.Person.Field.NAME]; opts[opensocial.DataRequest.PeopleRequestFields.SORT_ORDER] = opensocial.DataRequest.SortOrder.NAME; opts[opensocial.DataRequest.PeopleRequestFields.FILTER] = opensocial.DataRequest.FilterType.HAS_APP; ============== var fields = ['id','age','name','gender','profileUrl','thumbnailUrl']; var batch = osapi.newBatch(); batch.add('viewerFriends', osapi.people.getViewerFriends(opts)); batch.execute(render); </code> the code between "========", did not work well.
What can I do ? So, please help me . -- 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-...@googlegroups.com. To unsubscribe from this group, send email to opensocial-api+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en.