Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

using Appcelerator and foursquare api with xauth / oauth


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:


— asked October 5th 2010 by Larry Bridges
  • createhttpclient
  • foursquare
  • iphone
  • oauth
  • xauth

3 Answers

  • 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.

    — answered October 25th 2010 by Matthew Brennan
  • I do a Foursquare API: https://github.com/rafaelks/titanium-appcelerator-foursquare-api

    — answered October 17th 2011 by Rafael Kellermann Streit
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.