Hello, I tried out the OAuth sample rails application that came with the SDK and when I replaced the sample CONSUMER_KEY and CONSUMER_SECRET with my version (from a MySpaceID app that I am creating), I could not get the access token successfully. I get the error:
"oauth_problem=parameter_rejected,oauth_problem_advice=oauth_verifier is invalid or doesn't match". I've tried fiddling around with the settings of my External Application. Here are the settings for the External URL: http://localhost:3000 and for the External Callback Validation: http://localhost:3000/oauth/callback/ (I've tried it with and without the trailing '/'). Somehow the sample consumer_key and consumer_secret work magically.
So I 1) started up the rails site on my own machine, 2) navigated to http://localhost:3000/oauth/index,
3) clicked on "Click here to begin" 4) since i was already logged in I clicked Continue to link my account to the app
5) Navigated to http://localhost:3000/oauth/callback in the same browser window session. Then I got the error mentioned above.
Thanks,
Patrick
UPDATE: OK, problem solved!!! Once I patched the myspace.rb file in the gem cache to fix the callback url redirection problem (see http://code.google.com/p/myspaceid-ruby-sdk/issues/detail?id=2) I had no more problems! Wow, wasted a day with this problem. I guess I don't completely understand the OAuth process but the actual redirection to the callback page solved the trick!!!