burkeholland / InstaSharp

A c# wrapper for the Instagram API
Apache License 2.0
48 stars 1 forks source link

Login Page of Instagram is not found using Instasharp #56

Closed Tiyyob closed 9 years ago

Tiyyob commented 9 years ago

I am using Instasharp library to communicate with Instagram. After passing required parameters and building the link for authentication. System shows the screen that page not found (supposed to be Instagram Authentication Page for login)

My code is given below between the lines


var client_id = ConfigurationManager.AppSettings["instagram.clientid"].ToString(); var secret = ConfigurationManager.AppSettings["instagram.clientsecret"].ToString(); var redirect_uri = ConfigurationManager.AppSettings["instagram.redirecturi"].ToString(); var realtimeUri = ""; var scopes = new List(); scopes.Add(OAuth.Scope.Likes); scopes.Add(OAuth.Scope.Comments); var config = new InstagramConfig(client_id, secret, redirect_uri, realtimeUri); var oauth = new OAuth(config); var link = OAuth.AuthLink(config.OAuthUri + "/authorize", config.ClientId, config.RedirectUri, scopes, OAuth.ResponseType.Code); Response.Redirect(link);*


Please note that final value for variable link is given below between the lines


https://api.instagram.com/oauth//authorize?client_id=Client Id Goes Here&redirect_uri=Redirect URL goes here&response_type=code&scope=likes+comments


Once the application tries to redirect the page, it shows me the page not found error at instagram website. Please observe the picture given below

instagram_login_page_not_found_2

Please advise if anybody has experienced the similar situation before.

Tiyyob commented 9 years ago

Solved, Solution could be seen at following link

http://stackoverflow.com/questions/32074613/login-page-of-instagram-is-not-found-using-instasharp