MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

MySpaceID.SDK: getting error "Unauthorized - oauth_problem=permission_unknown"

Last post 07-02-2009 10:36 AM by Rachana. 12 replies.
Page 1 of 1 (13 items)
Sort Posts: Previous Next
  • 06-01-2009 4:25 AM

    MySpaceID.SDK: getting error "Unauthorized - oauth_problem=permission_unknown"

    I've updated to the latest version of MySpaceID.SDK for DotNet and changed deprecated code as recomended - like in demo project "MySpaceID-OpenId-OAuth". But now I get an error when trying to get access token: "Unauthorized - oauth_problem=permission_unknown".

    if (State.OAuthOpenID != null)

    {

    var context = new OffsiteContext(MyspaceAppConfig.ConsumerKey, MyspaceAppConfig.ConsumerSecret);

    //Use the Request Token from the OpenID+OAuth extension to exchange for an Access Token.

    var accessToken = (AccessToken)context.GetAccessToken(State.OAuthOpenID.RequestToken, "");

    ........

  • 06-01-2009 10:22 AM In reply to

    Re: MySpaceID.SDK: getting error "Unauthorized - oauth_problem=permission_unknown"

    Let me check in with the .net sdk dev and hopefully he'll get back to you soon.
    Rhonda

     

  • 06-01-2009 8:08 PM In reply to

    • hks
    • Top 150 Contributor
    • Joined on 12-31-2007
    • Posts 29
    • MDP Team

    Re: MySpaceID.SDK: getting error "Unauthorized - oauth_problem=permission_unknown"

    hello socadv,

    I am sorry you were experiencing a problem. Let me try to help. Usually a permission_unknown problem occurs due the following reasons: The User hasn't decided whether to permit this Consumer to access Protected Resources. Usually happens when the Consumer requests Access Token before the user completes authorization process.

    Is it possible that you are experiencing that?
    regards
  • 06-02-2009 5:21 AM In reply to

    Re: MySpaceID.SDK: getting error "Unauthorized - oauth_problem=permission_unknown"

    hi counerhype,

    It was my mistake: I used wrong consumer key/secret (of another my app of different type). I'm sorry for wasting your time.

  • 06-02-2009 11:51 AM In reply to

    • hks
    • Top 150 Contributor
    • Joined on 12-31-2007
    • Posts 29
    • MDP Team

    Re: MySpaceID.SDK: getting error "Unauthorized - oauth_problem=permission_unknown"

    No problem socadv. Glad to hear you figured it out.
  • 06-03-2009 5:01 AM In reply to

    Re: MySpaceID.SDK: getting error "Unauthorized - oauth_problem=permission_unknown"

    Help me

     

    URl www.myspace.com/sivap

     

    I am new to myspace.I have created two apps in myspaceid.
    Both of them are showing different secret key.When I use API tool on myspace I am able to access profile.But through the .NET code i am always getting 401 error.Please assist me.How to get the correct consumer key and secret key thanks in advance.
    Thanks in advance.

    Siva

  • 06-03-2009 1:50 PM In reply to

    • hks
    • Top 150 Contributor
    • Joined on 12-31-2007
    • Posts 29
    • MDP Team

    Re: MySpaceID.SDK: getting error "Unauthorized - oauth_problem=permission_unknown"

    hello sivamurugan,

     you need to go to the "My Apps" tab and find the app you are trying to develop for. Click on that app, and look up the consumer key and secret. Use that combo with the MySpaceID SDK as the samples do. Let us know how it goes.

     

  • 06-03-2009 10:38 PM In reply to

    Re: MySpaceID.SDK: getting error "Unauthorized - oauth_problem=permission_unknown"

    Bunch of thanks for the kind reply.

    my consumer key:4a6baead04454966b95eac31417ceadc

    secret key:036965a2dfbc4ceab15c7cc5381229bc

    What is the resource URL i have to give.

    When i tried with the OAuth Tool through myspace websites it throughs me a error bad request.

    Thanks in advance. 

    Another Doubt

    How to access my friends list people,photos what consumer secret key i have to give.

    My URL is www.myspace.com/sivap

    for this what is the secret key. Thanks in advance.

     

     

     

  • 06-18-2009 12:28 AM In reply to

    • Shweta
    • Not Ranked
    • Joined on 05-18-2009
    • Posts 5

    OAuth_problem

     Hi Counterhype,

    My consumer key is http://www.myspace.com/476030946

    and secret is beccd53cc6e6401aa168ac87144915ed,

    I am requesting for oauth access token to access my friend list of myspace in my application.

    When i tried with external app tool the wizard completed (i have given the callback url of my application only)& linked me to my application url but i am still unable to access friends from my code coz it didn't provided me any access token instead it directly linked me to my application. And when i tried to get token from my code it game me OAuth_problem= permission denied.

    Can you help me.............pls............

  • 07-01-2009 6:32 PM In reply to

    Re: OAuth_problem

     Hi All,

        I am facing the same porblem.

        This is what I am doing 

        self::$client = new Myspace(MYSPACE_API_KEY,MYSPACE_SECRET);
                 $token = self::$client->getRequestToken();
                 $oAuthToken = $token['oauth_token'];
                 $oAuthTokenSecret = $token['oauth_token_secret'];
                 $accessToken = self::$client->getAccessToken($oAuthToken);

     I am getting error

       
    HTTP error 401 <br/><br/>
    Response:<br/><br/>
    HTTP/1.1 401 Unauthorized
    Cache-Control: private
    Content-Length: 32
    Content-Type: application/x-www-form-urlencoded; charset=utf-8
    Server: Microsoft-IIS/6.0
    WWW-Authenticate: OAuth realm="http://api.myspace.com/authorization", oauth_problem=permission_unknown
    Set-Cookie: MSCulture=IP=208.78.195.163&IPCulture=en-US&PreferredCulture=en-US&PreferredCulturePending=&Country=VVM=&ForcedExpiration=633820695128076546&timeZone=0&myStuffDma=&myStuffMarket=&USRLOC=QXJlYUNvZGU9ODAzJkNpdHk9Uk9DS0hJTEwmQ291bnRyeUN in /var/www/rachana/trunk/lib/app/rest_clients/myspace/source/MySpaceID/myspace.php on line 1371
     

    Can anyone tell me where I am going wrong. 

    Thanks in advance.

      

  • 07-02-2009 10:24 AM In reply to

    Re: OAuth_problem

    " The User hasn't decided whether to permit this Consumer to access Protected Resources. Usually happens when the Consumer requests Access Token before the user completes authorization process.  " .. sorry I am not able to understand this .. Can you tell me .. what i need to do to get rid of this error. I have found while surfing net that you should publish you application. I have published it. Will this solve my problem.

  • 07-02-2009 10:27 AM In reply to

    • Kiam
    • Top 150 Contributor
    • Joined on 11-18-2008
    • Posts 28
    • MDP Team

    Re: OAuth_problem

    Have you redirected the user to the login page and has he logged in?

  • 07-02-2009 10:36 AM In reply to

    Re: OAuth_problem

     I am already logged in my myspace account. I am opening my app in canvas. I am grabbing ownerid from the iframe and sending it to my site and trying to fetch the information from myspace. 

    I dont know, are thiese right steps or not. 

    Thanks in advance,

    Rachana

     

Page 1 of 1 (13 items)