This project has moved. For the latest updates, please go here.

Invalid Frob (108)

Topics: Developer Forum, Project Management Forum, User Forum
Jul 14, 2009 at 3:17 PM


i am doing a web site application. and in this application i have to use flickr to upload users' pictures to flickr.

this is my c# code to upload picture:


Flickr flk = new Flickr(appKey, secret);
  frob = flk.AuthGetFrob();

  string flickrUrl = flk.AuthCalcWebUrl(AuthLevel.Write);

  Auth auth = new Auth();
  auth = flk.AuthGetToken(frob);
  flk.ApiToken = auth.Token;                                                             

   string UploadToFlickr = flk.UploadPicture(stream,txtCatName.Text,txtStory.Text,txtTown.Text + " / " + ddlRegion.SelectedItem.ToString(),1,1,1);

but in the line :  auth=flk.AuthGetToken(frob); i got the error message : Invalid frob (108)


now where is my mistake? how can i take the right frob and token values to upload picture to flickr?


Jul 14, 2009 at 3:53 PM

You need to go and read the Flickr Web Auth how-to: as you appear to be doing it all wrong.

For web auth you do not get the frob using AuthGetFrob, but you use AuthCalcWebUrl to get a URL, then redirect to that url.

Process.Start will do nothing on a web server, you need to use Response.Redirect.

You then need to configure a callback to call your web page and then get the FROB value from the querystring.


Jul 14, 2009 at 9:24 PM

thanks for the answer but response.redirect will affect lots of things in my code. so i dont want to use it if i have another choice, have i ? cant i get the frob without response.redirect ?

Jul 15, 2009 at 6:59 AM

No, you can't - that is how web authentication works I'm afraid. If the user is not authenticated you need to redirect them to the Flickr web site, then they get redirected back, and after that you can perform your operations.

Download the example web site from the Examples page on this sites wiki:

Sep 3, 2009 at 11:15 PM

I'm tried parse the frob "72157622107416601-3b7b56fb6e72ed2f-42115805" returned by flick, but this raise an error.

I'm using your website of example. Could You help me?


Sep 4, 2009 at 1:02 PM

I don't know if I can help you without more details.

Are you successfully authenticating on the Flickr web site before called GetToken?

Telling us the FROB doesn't help by the way, as this will be specific to you and the user who is authenticating.


Sep 4, 2009 at 2:23 PM
Edited Sep 4, 2009 at 5:21 PM

Hi Sam, I configured the example like next:
The CallbackUrl are setted to
The sample files are in

The page of the Photo Album is working correctly

I tried too in a windows application but the same error appeared.

What do I do for help yours to the help Me?


Sep 7, 2009 at 3:06 PM
The code appears to be working fine, but rather than redirecting it is
printing out the frob (or Auth Token, I'm not 100% sure). If you then
refresh the page you get the Invalid Frob error, because you are
trying to use the same Frob twice.

Have you changed any of the code?


2009/9/4 FabioSilva <>:
> From: FabioSilva
> Hi Sam, i configured the example like next:
> The CallbackUrl are setted to
> The sample files are in
> The page of the Photo Album is working correctly
> What do I do for help yours to the help Me?
> Thanks
> Read the full discussion online.
> To add a post to this discussion, reply to this email
> ([email removed])
> To start a new discussion for this project, email
> [email removed]
> You are receiving this email because you subscribed to this discussion on
> CodePlex. You can unsubscribe or change your settings on
> Please note: Images and attachments will be removed from emails. Any posts
> to this discussion will also be available online at
Sep 8, 2009 at 4:04 PM

Hi Sam, was doing something wrong, but now is working perfectly, very thanks by the attention.

Fabio Silva