Hi -- I'm trying to get my oAuth working with twitter4j and ColdFusion.
Here's the code I use: <cfset TwitterConsumerKey = "ssssss"> <cfset TwitterConsumerSecret = "tttttttt"> <cfset Twitter = createObject("java", "twitter4j.Twitter")> <cfset Twitter.setOAuthConsumer(TwitterConsumerKey,TwitterConsumerSecret)> <cfif structKeyExists(url,'oauth_token') IS FALSE> <!--- // 2. Authorize ---> <cfset RequestToken = Twitter.getOAuthRequestToken("http:// myURL.com")> <cfset Session.oAuthRequestToken = RequestToken.getToken()> <cfset Session.oAuthRequestTokenSecret = RequestToken.getTokenSecret()> <cflocation url="#RequestToken.getAuthorizationURL()#" addtoken="No"> <cfelse> <!--- // 3. Authenticate // ---> <cfset AccessToken = Twitter.getOAuthAccessToken(Session.oAuthRequestToken,Session.oAuthRequestTokenSecret)> <cfset session.StoredAccessToken = AccessToken.getToken()> <cfset session.StoredAccessSecret = AccessToken.getTokenSecret()> <cfset Twitter.setOAuthAccessToken(Session.StoredAccessToken,Session.StoredAccessSecret)> <cfset ID = Twitter.getId()> <cfdump var="#session#"> <cfdump var="#ID#"> </cfif> It loads fine, and brings me to the Twitter authentication screen. I click "Agree" and am redirected back to my page. When I return I am met with this error: 401:Authentication credentials were missing or incorrect. <?xml version="1.0" encoding="UTF-8"?> <hash> <request>/oauth/access_token</ request> <error>Invalid oauth_verifier parameter</error Any ideas? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk?hl=en