How i can create My Silverlight application to search on flickr ?

Topics: Developer Forum, Project Management Forum, User Forum
Aug 6, 2011 at 7:42 AM

I make a application in Silverlight using c# in backend. can someone tell me how i can make a feature in it then someone can type a word and click on search then they can find out all image on the topic they want.

 

can someone tell me how i can do this.  when i write this code i got error that 108 invalid frob

  Flickr flickr = new Flickr(Globals.APIKEY, Globals.APISECRET);
 
            flickr.AuthGetFrobAsync(f =>
            {
                if (f.Result.Length > 0)
                {
                    flickr.AuthGetTokenAsync(f.Result, auth =>
                    {
 
 
                        flickr.AuthToken = auth.Result.Token;
 
                        PhotoSearchOptions option = new PhotoSearchOptions(Globals.USERID, "Microsoft", TagMode.AllTags);
 
                        flickr.PhotosSearchAsync(option, x =>
                        {
 
                        });
                    });
                    
                   
 
                }

Coordinator
Aug 7, 2011 at 2:29 PM

You appear to be attempting to perform authentication.

1) To perform a simple search you do not need to be authenticated, so if you don't need it I would avoid authentication.

2) When you authenticate between getting the frob (AuthGetFrobAync) and getting the token (AuthGetTokenAsync) you need to redirect the user to the Flickr web site to actually authenticate. This can be done with a WebBrowser control.

Sam