
else everything was fine before, but I am unable to get UserID/ UserEmail. the only thing is I was not storing the dynamic secret immediately from the Get method. In fact, I had done R&D about this requirement from many sites and I had read many articles, but unfortunately I was unsuccessful of getting the user images. Photo->from the above foreach loop, we can notice Photo ( Photo is the predefined class in.


.jpg)
} // End of my Flickr Models string frob = Request.QueryString
FLICKR GALLERY MAX MOD
these are my Flickr models (you can write your models) FlickrViewModel mod = new FlickrViewModel
FLICKR GALLERY MAX CODE
But we have multiple users across dynamically, that's why our code needs to calculate the user details. Or else, if we have only a single user, directly we can pass his email/username. Here, one more thing we need to remember is that we need to identify the logged user dynamically and our code needs to get his details. Here is the Get method which makes everything about the user (calculates number of images & gets user name & user Id & user name). Remember that immediately after redirecting, Flickr Application will send us the dynamic secret code, the first thing we need to do is immediately in the Get method, we need to save/store that in a clientside statemanagement, i.e., in query string/cookie, or. This method will take the user to Flickr Site and authorize the user and then it will redirect to our App.Īs we are in MVC, here we need to use an attribute for the method which was asking the user Images, ie. Var url1 = flicker.OAuthCalculateAuthorizationUrl(token.Token, AuthLevel.Read) OAuthRequestToken token = FlickrManager.GetRequestToken(flickrUrl) String flickrUrl = flicker.AuthCalcWebUrl(AuthLevel.Read) I wrote my API secret and Token in Web.Config file, and I am accessing them from my Controller. I wrote all the code in Controller which is to get user Images. Remember that Flickr will only provide a max of 1000 images of user to any app, here I am using C# with MVC. Here, while dealing with Flickr, first of all, we need to Register our App with Flickr and then we need to get the Secret Key & Token from Flickr.īy following this URL, we can register our App:Īnd the next thing is using that Flickr Secret and Token, we need to get the user details and number of images that user may contain in Flickr. Now, I would like to share this Flickr code with other developers. After hours and hours of R&D, I succeeded with Flickr. While Googling, I was successful with Picasa, but unfortunately, I was not successful with Flickr. In a requirement, I have to get the logged user images from third party sites such as Picasa and Instagram & Flickr.
