Home Forge Forums  

Social Apps & Widgets Forums | TwitTown > Developer Zone - Apps and Widget > Twitter developers > Twitter API > OAuth simple authentication for desktop app

Thread Tools Display Modes
Old 11-23-2010, 09:54 PM   #1
Junior Member
Join Date: Nov 2010
Posts: 1
Question OAuth simple authentication for desktop app

I have a problem regarding OAuth. I need to be able to post on behalf of the user from a desktop application.
For facebook this is done quite simple (I registered my app, got an client id and user an html dialog in mfc to navigate to a link that will ask the user for his credentials: https://graph.facebook.com/oauth/aut...nt_id=11201518... . After the user enters his credentials, I am redirected to a fake facebook page that has the access_token in it's argument list(GET method). After reading the token I am free to make api calls on behalf of the user)

Now, on twitter I thought i was a little bit more complex until I found this article:
It says here that the same as for facebook is possible for desktop application that manipulate only on account at a time.

The problem is that when I access this url (https://api.twitter.com/oauth/authen...29-FLFtpRe0vWG..) from the browser to test it, id doesn't ask for user credentials, instead it shows this :
"Woah there!
This page is no longer valid. It looks like someone already used the token information you provided. Please return to the site that sent you to this page and try again … it was probably an honest mistake."
I wowld have expected to be redirected to the callback url that I set up for my app and get an access_token to use for api calls after the user allows access to my app, but this is not the case.

This link explains what i am trying to achieve in more detail

Please help
raduh is offline   Reply With Quote

Social Apps & Widgets Forums | TwitTown Database Error
Database Error Database error
The Social Apps & Widgets Forums | TwitTown database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the twittown.com home page, then try to open another page.
  • Click the Back button to try another link.
The twittown.com forum technical staff have been notified of the error, though you may contact them if the problem persists.
We apologise for any inconvenience.