This project has moved and is read-only. For the latest updates, please go here.

OAuth response

Topics: Developer Forum
Oct 20, 2011 at 8:27 PM

Hi, after the callback i've the response "oauth_token=72157627814904183-79ac4a8d40877644&oauth_verifier=3d9e5d40df7c9412".
Then i pass it to FlickrNet.OAuthAccessToken.ParseResponse("oauth_token=72157627814904183-79ac4a8d40877644&oauth_verifier=3d9e5d40df7c9412");

After that my token has got only Token properties, the others (TokenSecret, username, userid, fullname) are null.

Then, whey i want to use that token every methods fails.


Oct 20, 2011 at 8:58 PM

You need to pass the verifier into the Flickr.OAuthGetAccessToken() method.

This will return you a OAuthAccessToken instance for you.


Oct 20, 2011 at 9:14 PM

Hi, sorry but I explain my flow...

1. Flickr.OAuthGetRequestToken(...)
2. Flickr.OAuthCalculateAuthorizationUrl()
3. ResponseRedirect to URL
4. Callback
5. FlickrNet.OAuthAccessToken.ParseResponse
6. ?

Where I fail?
Where put Flickr.OAuthGetAccessToken()?


Oct 20, 2011 at 9:26 PM

Replace step 5 with the call to OAuthGetAccessToken() You will need to get the verifier out of the response you have.

Oct 20, 2011 at 9:35 PM

Ok, but in OAuthGetAccessToken() i must pass a requestToken.

RequestToken is created before callback, i don't have any requestToken after callback.


Oct 20, 2011 at 9:39 PM

Then you need to store the request token and secret somewhere. Either in a session variable, database or cookie or something.