Hi All, I am using below mentioned code to find viewer's city name.
var init = function(){ var params = { "profileDetail" : [ "addresses"], "max" : 10 }; var req = opensocial.newDataRequest(); req.add(req.newFetchPersonRequest (opensocial.DataRequest.PersonId.VIEWER, params), 'viewer'); req.send (response); }; var response = function(data){ var viewer = data.get("viewer").getData(); var addresses = viewer.getField("addresses"); var country = addresses[0].getField ("country"); var city = addresses[0].getField("city"); gadgets.window.adjustHeight('750px'); }; init(); Whenever I am alerting country, I am getting it properly. But city I am getting as undefined. Please help me to find it out. Thanks in advance, Soumya --~--~---------~--~----~------------~-------~--~----~ 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 opensocial-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/opensocial-api?hl=en -~----------~----~----~----~------~----~------~--~---