MySpace Developer Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

How to get access token from a oauth token

Last post 05-05-2008 11:59 AM by Co0pOnTaPe. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 05-05-2008 8:55 AM

    • Andy
    • Top 200 Contributor
    • Joined on 04-07-2008
    • Posts 14

    How to get access token from a oauth token

    Hello All,

    I'm trying to get a access token after a user has authorize me to do so...  How do you achieve this?

    So far I have gone as far as:

    1. Request token from Myspace API

    2. Redirect user to myspace authorize page with a callback url

    3. Got to my callback url with a auth token appended to the end of the url

    4. Then what???

    5. Get user's public photos data 

    Thanks in advance for any help from anyone...

  • 05-05-2008 9:42 AM In reply to

    • Andy
    • Top 200 Contributor
    • Joined on 04-07-2008
    • Posts 14

    Re: How to get access token from a oauth token

    I have also try to use the RESTful API and going that route, I can only get user's data that have installed my app. I get this error when I pass an userid that does not have my app installed:

     User has not installed the current application or application does not have access to requested resource

     Is there a way around that? My app is external and would just like to access the user's public photos...

     Anyone?

  • 05-05-2008 10:41 AM In reply to

    • Andy
    • Top 200 Contributor
    • Joined on 04-07-2008
    • Posts 14

    Re: How to get access token from a oauth token

    found the method call: http://api.myspace.com/v1/access_token.xml

    but now I'm getting a 403 error: This application doesn't have permissions to grant access token by cookie.

    anyone else ever came across this problem? 

  • 05-05-2008 11:49 AM In reply to

    Re: How to get access token from a oauth token

    Not really a Flash-related question, but the problem, I'd gather, is that the user you're attempting to retrieve information about does not have the App installed on their account. At this time, that's the only way to grant permissions -- the access-token from the MySpace log-in is not a permissions setting, only a user verification, so that you know whose information to retrieve.

     

  • 05-05-2008 11:59 AM In reply to

    Re: How to get access token from a oauth token

    Hey Jeremy,

    Thanks for your reply. However, I've tested this with an user that did install the app. I get the same response.

    Andy 

Page 1 of 1 (5 items)