MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Application visibility

Last post 09-03-2008 1:34 PM by Firstin Wireless. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-03-2008 12:25 PM

    Application visibility

    I'm working on a small application. The application is still in development stage but, i want a few friends to be able to test it. I installed the application on my developer account but, when a friend is looking at my page, he can't see the application on my page. I added my friend as application friend too but he still can't see the application. What can i do in this case? Thank you.
  • 09-03-2008 12:48 PM In reply to

    Re: Application visibility

     Each profile is unique :)

    Log in as the PROFILE of the app ( you know, the email address you gave for the app when you created it?)

    from there you can add friends.

    Rhonda

     

  • 09-03-2008 1:34 PM In reply to

    Re: Application visibility

    Ok. Is working now.

    I moved the code from Home surface to Profile surface and i see the application there but, i have a different problem now:

    I get this error: "unauthorized Permission denied to all viewer resources" when the friend is checking the profile.
    From developer account everything is ok.

    I even tested with the Hello World example modified to display the error message and i get the same error.
    Here is the hello world modified:




    var os; var dataReqObj; var html = ''; var heading = ''; function init() { os = opensocial.Container.get(); dataReqObj = os.newDataRequest(); var viewerReq = os.newFetchPersonRequest(opensocial.DataRequest.PersonId.VIEWER); dataReqObj.add(viewerReq); dataReqObj.send(viewerResponse); } function viewerResponse(data) { if (data.hadError()) { var err = data.get(opensocial.DataRequest.PersonId.VIEWER); document.getElementById('main').innerHTML = err.getErrorCode() + '\n' + err.getErrorMessage(); return; } var viewer = data.get(opensocial.DataRequest.PersonId.VIEWER).getData(); heading = 'Hello, ' + viewer.getDisplayName(); var thumb = viewer.getField(opensocial.Person.Field.THUMBNAIL_URL); var profile = viewer.getField(opensocial.Person.Field.PROFILE_URL); document.getElementById('heading').innerHTML = heading; document.getElementById('main').innerHTML = html; } init();

    How can i use CODE tags in this forum?
Page 1 of 1 (3 items)