I'm always getting the "Invalid / used nonce" error, even though I am providing a new nonce. I am 100% sure my code works, because if I remove my user cache, and the screen pops up to log into Twitter, then I immediately go to the user's timeline in my app, and everything loads: followed timeline, mentions, and DMs. However, when I close my app, and relaunch it, and go back the user's timeline again (same things are loaded: followed timeline, mentions, and DMs), but I get that "Invalid / user nonce" error. If my method of creating a nonce isn't always going to give me an unused one, what will? I'm currently encrypting a UUID I get from the iPhone OS, and I've tried encrypting the current time in seconds. Any other methods I should be trying?
- Jason