public static IEnumerable <InstagramMedia> GetLastestInstagramPosts(object OAuthValue) { // Check whether the OAuth data is valid InstagramOAuthData instagram = OAuthValue as InstagramOAuthData; // Check whether the OAuth data is valid if (instagram != null && instagram.IsValid) { // Gets an instance of TwitterService based on the OAuth data InstagramService service = instagram.GetService(); var response = service.Users.GetRecentMedia(); // Get recent status messages (tweets) from the authenticated user return(response.Body.Data); } return(null); }