MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Activity error

Last post 10-15-2009 10:26 PM by Test User. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-14-2009 9:17 AM

    Activity error

    <script>
    function activities() {
    var params = {};
    params[opensocial.Activity.Field.TITLE_ID] = "Mytemplate";
    params[opensocial.Activity.Field.TEMPLATE_PARAMS] = {};

    var mediaItemArray = [;
    mediaItemArray.push(opensocial.newMediaItem("", "http://c2.ac-images.myspacecdn.com/images02/62/l_d54d0fdc425045cc9a7f13e151f9fe99.png"));
    params[opensocial.Activity.Field.MEDIA_ITEMS] = mediaItemArray;

    var activity = opensocial.newActivity(params);
    opensocial.requestCreateActivity(activity, opensocial.CreateActivityPriority.HIGH, callback);
    }

    function callback(data) {
      if (data.hadError()) {
        document.write("There was a problem:" + data.getErrorCode());
      } else {
        output("Ok");
     document.write("fdfdfd");
      }
    };
    activities();
    </script>

     

     

     its not really a bug...  all pictures except user photos dont work

    any insite or help

  • 10-15-2009 10:26 PM In reply to

    Re: Activity error

    Hey Steve,

     

    When raising an activity, you can associate 2 images. The images must be stored on the MySpace network. We accept the following  references:
      • Image to the users profile picture:  "http://api.myspace.com/v1/users/" + userId
      • Image to a public photo : 
        • "http://api.myspace.com/v1/users/" + userId + "/photos/" + imageId
        • "http://api.myspace.com/v1/users/" + userid + "/albums/" + albumid + "/photos/" + photoid 

    This follows the syntax as defined for the REST resources of photos.

     

Page 1 of 1 (2 items)