MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Get friends from myspace

Last post 12-14-2008 11:22 AM by i love itchey!!!!!. 16 replies.
Page 1 of 2 (17 items) 1 2 Next >
Sort Posts: Previous Next
  • 02-21-2008 12:46 AM

    • Sibin
    • Not Ranked
    • Joined on 02-21-2008
    • Posts 3

    Get friends from myspace

    I am new to myspace developer platform. I need to get and post blogs, get friends, imports addressbook, get inbox, get photos, and get videos from Myspace to the asp.net website i am creating. Is there any webservices or apis which serve the purpose? Where can i find some .net sample codes? Please help. Its urgent.

    Thanks in advance.

  • 02-21-2008 12:35 PM In reply to

    Re: Get friends from myspace

     Click on Learn & Play on the top navigation (right at the top of this page) - all documentation we have is available there. 

     We don't offer the majority of API's you're asking for...some are planned, some are not (address book export, inbox), but documentation's there.

     Thanks! 

    Please follow us on Twitter for major announcements and updates:

    http://www.twitter.com/MySpaceDevTeam
  • 02-21-2008 1:08 PM In reply to

    Re: Get friends from myspace

    Hi Sibin,

        You can find some more information on this forum:
    http://developer.myspace.com/Community/forums/t/144.aspx

    I've developed a .NET class library to access the Myspace REST API which you can download at:

    http://www.codeplex.com/myspacetoolkit

    As stephanie said not all of the methods you need are available however, get friends, get photos and get videos are available.

    As time goes on and the API develops I will continue to update the myspacetoolkit to coincide with new releases from myspace.

    Thanks!
    Joseph

  • 03-01-2008 2:26 AM In reply to

    • Sibin
    • Not Ranked
    • Joined on 02-21-2008
    • Posts 3

    Re: Get friends from myspace

    Thanks a lot Joseph... it looks like a nice application.. can you please tell from where can i get the "requestObj.UserId"? I got my Cunsumer key and Consumer secret. But i couldnt figure out the third one.. Please help..

    Thanks in advance.

    sibin

  • 03-01-2008 2:21 PM In reply to

    Re: Get friends from myspace

    If you have installed the application on your profile from your developer account, to test, you could get it from the URL were there is the friendid querystring. I did that just to test... however you want it to work automatically when a request comes to your server you would need to do a few things.

    This will be part of the Toolkit in the next month or so, which will allow to receive the request from myspace makeRequest, and then validate that the signature is valid along with the other parameters. Once you have that you could pass back data or show information through an iframe.

    Until then, here is a link to a thread where Johnathan as put together an example of this.

    http://developer.myspace.com/Community/forums/p/426/2212.aspx

    Thanks!
    Joseph

  • 03-04-2008 2:08 AM In reply to

    Re: Get friends from myspace

     

     Helo Jospeh,

    This is the url given for my appllication.  http://www.myspace.com/346032613 . The status of the application is pending approval. does the number "34603213" corresponds to the requestObj.UserId?

    Can i use the keys when the status us pending approval? What are the criteria for getting an approval.

    Thanks a lot for your help...

  • 03-04-2008 10:13 PM In reply to

    Re: Get friends from myspace

    Well that is the ID for the application profile page. Now if you get approval (which usually doesn't take more than 24-48 hours at the very most), you should then go to your application profile page.

    Now if you have logged into myspace with your normal user account you can click on the button that says "Install this application" and you should be able to then access it via your user id.

    Here's some pictures to describe what i am saying.

    Step 1:


    Step 2:


    Step 3:


    The red outlined ID would be what you would use for the requestObj.UserId.

    Now this is just a manual way to utilize the REST API for testing. You would still need to implement that ability discussed in the other thread to properly obtain the user id for someone who has installed the application.

    Let me know if you need more help.

    Thanks!
    Joseph Farrar

  • 03-05-2008 3:51 AM In reply to

    Re: Get friends from myspace

     Thanks a lot Joseph for your helps...

     I have given

    requestObj.ConsumerKey = http://www.myspace.com/346032613

    requestObj.ConsumerSecret = "****************************" (This is the security key for my application)

    requestObj.UserId = "346032613"

    But it returned an error "The remote server returned an error: (401) Unauthorized." everytime... can you please help...

     Thanks in advance.

  • 03-05-2008 6:18 AM In reply to

    Re: Get friends from myspace

    First, Ramkumar, edit your post and REMOVE YOUR SECURITY KEY! (Or any moderator who has the authority)

     Never, ever, post it like that. With it, anyone could do nasty things to your App users. I don't mean to be rude, but that's a big no-no. Just fill it in with randomness next time you want to display a code-chunk that includes your Key.

    Secondly, about the error you're getting -- the requestObj.UserId has to be a string of the UserId of a MySpace Member who has installed your Application. Usually, for testing that would be yourself. I checked, and the one you have in the code above isn't your Id, your Id is "330349241" (No, User ids are not secrets -- I took that one directly from the hyperlink to your profile).

     And thirdly, am I the only one who finds the title of this thread hilarious?

    "Get friends from myspace?"
    Never, those people are nuts!

     

  • 03-05-2008 5:35 PM In reply to

    Re: Get friends from myspace

    Pulled the security key out of the post :) You hit one of the very very few times I'd ever EDIT someone else's post (I don't like doing that).

    And hey, I think you can find friends on myspace, not sure where you'd put them if you "get" them, but they're certainly here... :) 

    Please follow us on Twitter for major announcements and updates:

    http://www.twitter.com/MySpaceDevTeam
  • 03-05-2008 6:22 PM In reply to

    Re: Get friends from myspace

    Yeah FYI in the future this probably wouldn't be a smart thing to do. Originally and if you look at the .NET client library forum you will find tons of threads where i posted my secret token and consumer key.

    However, it's pretty easy to delete the application while in test mode, which is what I did once I was done testing.

    Since there isn't any modify/update methods... it really didn't matter to me much if people wanted to get my information. Now it's deleted and the problems I had were solved :).

    But yeah generally not a good idea especially as time goes on.

    -Joseph

  • 03-08-2008 5:20 PM In reply to

    Re: Get friends from myspace

    StephanieBamBam:

     Click on Learn & Play on the top navigation (right at the top of this page) - all documentation we have is available there. 

     We don't offer the majority of API's you're asking for...some are planned, some are not (address book export, inbox), but documentation's there.

     Thanks! 

    StephanieBamBam:

     Click on Learn & Play on the top navigation (right at the top of this page) - all documentation we have is available there. 

     We don't offer the majority of API's you're asking for...some are planned, some are not (address book export, inbox), but documentation's there.

     Thanks! 

    THANK YOU CAN YOU SEND ME SOME BLACK FRIENDS.
  • 03-19-2008 3:06 PM In reply to

    Re: Get friends from myspace

    hey can you add me on myspace

     

  • 04-07-2008 7:02 PM In reply to

    Re: Get friends from myspace

    ya im new on myspace too! It sucks not having any friends but that Tom guy. no efence to him but stil my friends have a myspace and i dont understand or know how to add them to b my friend. so if u know please tel me how to get them, or wel find them and then add them! Big Smile

  • 04-07-2008 9:30 PM In reply to

    Re: Get friends from myspace

    Please check out:

    http://forums.myspace.com/s/2.aspx?fuseaction=forums.viewsubforum

     

Page 1 of 2 (17 items) 1 2 Next >