|You maybe asking yourself, how do I create a MySpace app — or where do I get started developing a MySpace app? You’ve found the right place. This is a rough over view in 17 steps, how to get started… I recommend you have some basic knowledge of MySpace, HTML, and PHP before you get started with this tutorial. If you’re used to developing Facebook applications you’ll find MySpace uses some familiar concepts. Namely, allowing you to utilize languages you are familiar with. In the case of this tutorial on how to create a MySpace App, we use DownDoggy.com hosting as a guide to get you started.
Example App: MSExampleApp.zip
Sign up for a MySpace account. It doesn’t matter what kind of MySpace account you get. If you have one already, log in.
Step 2 & 3:
Sign in at developer.myspace.com if you’re not already signed in. Next, click “My Apps” this is where you will normally go to manage your MySpace Apps.
You will need to create an developer account and get approved.
Step 5 & 6:
Once you’re approved as a developer, start by clicking the “Build.” Next, name your MySpace App, provide email, password and agree to terms.
Step 7, 8 & 9:
The green area is self explanitory. Note: you can leave these fields blank if you don’t have info to provide now. Copy down your MySpace App URI Key. You’ll need it in Step 15. (eg. http://www.myspace.com/123456789). Point to your MySpace App directory under your DownDoggy.com hosting. (eg. http://YourDomain.com/MySpaceApp/). Copy down your Secret Security Key. You’ll need it in Step 15.
Step 10, 11 & 12:
Download the MySpace PHP Client Library provided by Jerome, a MySpace developer. Skip this step if you are using our sample app provided at the beginning of this tutorial.
Upload the contents of myspace-platform.tar.gz to your MySpace App directory under your DownDoggy.com hosting account. Or, if you are using the MSExampleApp.zip provided in the beginning of this tutorial, upload the “OAuth.php” & “Space.php” from the zip file.
|Create your index.php. This example pulls all your profile information into an array.||
<?php $mySpaceID = '4416169'; // user ID from any MySpace Account require_once('Space.php'); $key = 'http://www.myspace.com/330138372'; // Your MySpace App URI Key $secret = 'ajsj8s8hvh8llsjdd8dhgejndhdjc'; // Your Secret Security Key $s = new Space($key,$secret); $hProfile = $s->profile($mySpaceID); // Display Array Variables & Information echo '<pre>'; print_r($hProfile); echo '</pre>'; ?>
Upload your index.php file to your MySpace App directory under your DownDoggy.com hosting account.
Success! You’ve successfully pulled your user information from MySpace using your DownDoggy.com hosting. Now you can start designing your MySpace App!