I have been using titanium to build an iphone app that has successfully received and saved oauth tokens from foursquare.com. However, the problem I am running into is in not being sure how to pass those tokens along to make API calls that require authentication after I have stored them.
No matter how I try to send it, I get "Authentication needed." Is there something else I need to do? I have tried setting the oauth headers using setRequestHeader() as well. Has anybody else been able to get this working? The code I am trying can be found here:
Larry any luck on this issue?
I am having the exact same problem.
It seems to be because the same url is being sent twice in the request and its considered a replay attack by oAuth and rejected and returned as unauthorised.
I do a Foursquare API: https://github.com/rafaelks/titanium-appcelerator-foursquare-api
I managed to solve this issue.
I'm posting about it on my blog, the background and the solution.
I hope this helps.