MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Making myspace app

Last post 11-17-2009 4:31 PM by Joel. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 10-07-2009 12:05 PM

    Making myspace app

    I have a PHP game I made on my external server.  I wasn to connect to it threw an External IFrame.  I have searched the forum and found a few topic but the code always fails.  Right now I just want to get myspace to pass the friend ID to my app and I want to verify the friend ID is comming from myspace.  Alot of the samples I have tried request Myspaceapi.php which I am unable to locate.  Then with the examples that use OAuth.php and Space.php I get the following error.

     Fatal error: Uncaught exception 'Exception' with message '401 ' in /home/content/m/i/c/micdizo/html/boss/Space.php:177 Stack trace: #0 /home/content/m/i/c/micdizo/html/boss/Space.php(135): Space->_do_request('users/4416169/p...', Array) #1 /home/content/m/i/c/micdizo/html/boss/Space.php(52): Space->do_request('users/4416169/p...') #2 /home/content/m/i/c/micdizo/html/boss/index.php(9): Space->profile('4416169') #3 {main} thrown in /home/content/m/i/c/micdizo/html/boss/Space.php on line 177

     

    Please help me.

     

    Thanks in advance,

    Mike

     

  • 10-09-2009 12:33 PM In reply to

    Re: Making myspae app

    I was able use javascript to get my app to load.  I am able to send my app fried id, nickname, and thumbnail url of the user.  My problem now is how to load friends.  All the sample code posted on this site fails.  I even have sample code on a old app i was testing that the code works, but when I copy and paste it to my new project it dont work.  I am assuming it is using opensocail 0.7 on the old one and the new one is forcing me to use opensocial 0.8.   I would like to be able to request a users friends from my server so I can keep all the code server side.  Please let me know how I got about doing this.

     

    Thanks!

  • 11-05-2009 1:59 PM In reply to

    Re: Making myspae app

     Micheal-

     Since you're using php give the newest PHP SDK a try. You can find it here: http://code.google.com/p/opensocial-php-client/

    This SDK makes use of the newest REST endpoints and opensocial v0.9 features. There are several working examples for each endpoint to get you started on your way.

     

    Thanks

    Jesse

  • 11-17-2009 4:31 PM In reply to

    • Joel
    • Top 25 Contributor
    • Joined on 11-02-2009
    • Posts 98
    • MDP Team

    Re: Making myspae app

     If you run across any other issues, simply reply to this thread and we shall get back to you.

     

    thanks,

    Joel

Page 1 of 1 (4 items)