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
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
Please advise if anybody has experienced the similar situation before.