Welcome Developers!

in

Welcome!

in

Problems with Image in Notification

Last post 07-06-2009 11:01 AM by &. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-02-2009 12:34 PM

    Problems with Image in Notification

     Hi all,

     i've tried the tutorial on http://wiki.developer.myspace.com/index.php?title=App_Notifications

    But i'm stucking on adding an individual image to my notification. If i use the profile image as described above, everythings works fine, but if i use an external URL, no notification is send.

    So

    // attach the picture
    var mediaItemArray = [;
    mediaItemArray.push(opensocial.newMediaItem("", MyOpenSpace.MediaItemHelper.PROFILE_PICTURE));

    works fine. But

    // attach the picture
    var mediaItemArray = [;
    mediaItemArray.push(opensocial.newMediaItem("", "http://www......./my.jpg"));

     doesn't works. Also not if i specify the MIME-Type ( mediaItemArray.push(opensocial.newMediaItem(opensocial.MediaItem.Type.IMAGE, "http://www......./my.jpg"));  ).

     Any suggestions?

     Best regards,

    André

  • 06-03-2009 12:11 PM In reply to

    Re: Problems with Image in Notification

    External images are not allowed, sorry.

    We'll update the documentation to reflect this
    Rhonda

     

  • 06-09-2009 1:06 AM In reply to

    Re: Problems with Image in Notification

     Okay. But can i include an image from a public photo album? I tried to add one from xxx.myspacedn.com/.... which i have uploaded in my profile, but without success, too. 

    Is there another way?

    Thanks,

    André

  • 06-09-2009 9:26 AM In reply to

    Re: Problems with Image in Notification

     You should be able to use any images on your profile. What error are you getting?

  • 07-06-2009 11:01 AM In reply to

    • &
    • Top 25 Contributor
    • Joined on 03-21-2008
    • Posts 151

    Re: Problems with Image in Notification

    When raising an activity, you can associate 2 images. The images must be stored on the MySpace network (in other words: a public viewable photo album).

    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.

     

    An example of a REST image reference to a profile image:

    http://api.myspace.com/v1/users/355953233

    An example of a REST reference to a public image 

              http://api.myspace.com/v1/users/355953233/albums/406680/photos/8329241

     

    That will resolve to the internal format:

    http://viewmorepics.myspace.com/index.cfm?fuseaction=user.editAlbumPhoto&albumID=406680&imageID=8329241

    What will resolve to:

    http://c1.ac-images.myspacecdn.com/images02/61/l_2b939b3101254ac88df087b2ea837ba0.gif

     But don't use these internal formats on the template because it will be rejected.

     

    Marco

     

     

Page 1 of 1 (5 items)