Hello,
I used :
var viewerData = dataResponse.get(opensocial.DataRequest.PersonId.OWNER).getData();
var viewerName = viewerData.getField(opensocial.Person.Field.NAME);
to get the name of the page owner. it returned "villalog" a while ago
Now it returns "V1" what does not match the viewer name
I foun in hello world app
if (MyOpenSpace.Version === "0.8") {
var viewerReq = os.newFetchPersonRequest(opensocial.IdSpec.PersonId.VIEWER);
// 0.7 Container
} else if (MyOpenSpace.Version === "0.7") {
var viewerReq = os.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER);
}
But both cases do not work, the execution of the java script stops due to an error.
When my owner page is www.myspace.com/villalog I want the value "villalog" in a string. How do I achieve this ?
Thank you
villalog