Welcome Developers!

in

Welcome!

in

Post a picture

Last post 12-11-2009 1:41 PM by Joel. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 12-01-2009 1:24 AM

    Post a picture

    Hello all,

     Is there a working way to post a picture on my MySpace profile with PHP ?

    I tried several samples that do not work

    Best regards

  • 12-02-2009 12:07 PM In reply to

    • Joel
    • Top 10 Contributor
    • Joined on 11-02-2009
    • Posts 830
    • MDP Team

    Re: Post a picture

    Hi,

    Please provide me with more specific information about your app, as well as what you specifically tried to upload photos.

     

    thanks,

    Joel

  • 12-09-2009 6:28 AM In reply to

    Re: Post a picture

     Hello,

    I have made a MyspaceID application.

    Tried the SDK sample ( in the  /samples/myspaceid-oauth/ URL )

    Everything is fine. I get my profile info, my profile picture is displayed, as the informations to.

    Then, I want to post a picture.

     In the myspace.php file given with the MyspaceID SDK, I found a createAlbum method.

     But it does not work if I call it :

    $ms->createAlbum($userid, "title", "France", 'Everyone'));

    The error is :

    Notice:  Undefined variable: paramStr in /var/www/branches/trunk/space/source/OAuth/OAuth.php on line 764



    Notice: Undefined variable: paramStr in /var/www/branches/trunk/space/source/OAuth/OAuth.php on line 764



    Fatal error: Uncaught exception 'MySpaceException' with message 'Requested --> http://api.myspace.com/v1/users/452095681/albumsjson
    Response:<br/><br/>

    <br/><br/>


    ::myspace response::@2009-12-09T14:24:59+00:00
    _____________________________________________
    :: contentType ::
    text/xml

    :: status ::
    404

    :: headers ::
    HTTP/1.1 404 NotFound
    Cache-Control: private
    Content-Length: 562
    Content-Type: text/xml; charset=utf-8
    Server: Microsoft-IIS/6.0
    X-Powered-By: ASP.NET
    Set-Cookie: MSCulture=IP=195.115.75.219&IPCulture=fr-FR&PreferredCulture=fr-FR&PreferredCulturePending=&Country=RlI=&ForcedExpiration=633959367517249347&timeZone=0&myStuffDma=&myStuffMarket=&USRLOC=QXJlYUNvZGU9MCZDaXR5PU1vbnRwZWxsaWVyJkNvdW50cnlDb2RlPUZSJkNvdW50cnlOYW1lPUZyYW5jZSZEbWFDb2RlPTAmTGF0aXR1ZGU9NDMuNiZMb25naXR1ZGU9My44ODMyOTk5OTk5OTk5OSZQb3N0YWxDb2RlPSZSZWdpb25OYW1lPUE5; domain=.myspace.com; expires=Fri, 08-Jan-2010 14:25:51 GMT; path=/
    X-Server: 769930988916cbc32de1a53d98327dde11ad885daabc1b75
     
    And I did not find any method to post a picture in the myspace.php file :-(
    I would like to know the way to simply post a picture on the profile.
     
    Best regards 

     

     

  • 12-11-2009 1:41 PM In reply to

    • Joel
    • Top 10 Contributor
    • Joined on 11-02-2009
    • Posts 830
    • MDP Team

    Re: Post a picture

    Hi,

     Could you try our latest OpenSocial 0.9 api uri's instead?

    See here: http://wiki.developer.myspace.com/index.php?title=OpenSocial_0.9_MediaItems#Add_a_Photo_to_an_Album

    Let me know if this is helpful.

     

    thanks,

    Joel

Page 1 of 1 (4 items)