i have checked my codes in opensocial developer application in orkut it is returning information for name, status, about me etc. but not returning address, gender because the are some array type i don't know how to request those. the output() prints [object Object] for those address and gender field.
thanks for that url it contains many information that i can refer to, the sample code to fetch name , status, about me etc are:- 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 img = viewer.getField(opensocial.Person.Field.THUMBNAIL_URL); output("AboutMe:" + aboutme); output("STATUS: " + status); output('<img src="' + img +'">'); var name = viewer.getDisplayName(); output(name); }; function request() { var req = opensocial.newDataRequest(); var params = {}; params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [ opensocial.Person.Field.ABOUT_ME, opensocial.Person.Field.STATUS, opensocial.Person.Field.THUMBNAIL_URL ]; req.add(req.newFetchPersonRequest("VIEWER", params), "viewer_profile"); req.send(response); }; request(); but why inserting a field opensocial.Person.Field.ADDRESS doesn't working for me.... On 8/12/10, Mark W. <weitz...@us.ibm.com> wrote: > Does the container that you are deploying into support returning the > address field? > You could query the getSupportedFields rest call (http://opensocial- > resources.googlecode.com/svn/spec/1.1/Social-API-Server.xml#People- > Service-GetSupportedFields) and try and find out. > > Do you have a snip of code to post as well? > > -Mark W. > > On Aug 7, 10:57 am, abhijeet mandal <dinesh.abhij...@gmail.com> wrote: >> i am not able to fetch opensocial.Address.Field.COUNTRY >> can anyone please try to give the sample code >> i tried the sample code for opensocial.Person.Field.ABOUT_ME its >> working fine please help me to run opensocial.Address.Field.COUNTRY >> can anyone help, i will be very thankful to you. > > -- > 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. > > -- 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.