Welcome Developers!

in

Welcome!

in

viewerName changed, but how

Last post 08-24-2009 1:46 PM by villalog. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-24-2009 1:25 PM

    viewerName changed, but how

    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

  • 08-24-2009 1:46 PM In reply to

    Re: viewerName changed, but how

     problem was production page was chached / works now and viewer name does not work on test.

Page 1 of 1 (2 items)