Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to use Oauth properly
    primarykey
    data
    text
    <p>I haven't made much progress, so rather then look for an answer to the error stated in my original question, I think my problem would best be solved by some overall instructions on how to use Oauth properly. Please look below to question reformulated. </p> <hr> <p><strong><h1>ORIGINAL QUESTION</h1></strong></p> <p>I'm using the cocoa-wrapper api for soundcloud on my iPhone app. I'm trying to post with the code below, but get an error 422. I believe it has to do with the string <em>@"x-myapplicationurlscheme://connect"</em>, but the url's given to me by soundcloud look like this:</p> <pre><code> https://soundcloud.com/connect https://api.soundcloud.com/oauth2/token http://api.soundcloud.com/oauth/request_token http://api.soundcloud.com/oauth/access_token http://soundcloud.com/oauth/authorize </code></pre> <p>and I don't think they need to be plugged into the Dictionary below. On the other hand I don't know what else to put there. Also, it seems to me there were some errors in the <a href="https://i.stack.imgur.com/xE9Nj.png" rel="nofollow noreferrer">original sample code</a> which I have corrected, but maybe erroneously.</p> <pre><code> [api performMethod:@"POST" onResource:@"connections" withParameters:[NSDictionary dictionaryWithObjectsAndKeys: @"service", @"twitter", @"x-myapplicationsurlscheme://connection", @"redirect_uri", @"touch", @"display", //optional, forces services to use the mobile auth page if available nil] context:nil userInfo:nil]; </code></pre> <p>So the question is....</p> <p>How do I use this POST correctly? What am I doing wrong that gives the error 422?</p> <hr> <p><strong><h1>QUESTION REFORMULATED</h1></strong></p> <p>What I'm trying to accomplish is to have the user press a button to be able to connect their Soundcloud account to Facebook. This way they can have audio posted to FB automatically after it is uploaded to Soundcloud.</p> <p>Below are screen shots of my Soundcloud configuration page and places within my app that need setting up. I believe that it is just a matter of plugging in the right the values in the right place, but I'm not sure exactly how to do this. Help, please!</p> <p>Also, the last screenshot shows what happens when the user presses the Facebook connect button. Does this look right?</p> <p>Thanks so much, </p> <p><img src="https://i.stack.imgur.com/xE9Nj.png" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/h8Joj.png" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/JUNgK.png" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/Ken2A.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload