I have an ASP.NET MVC5 application that use instagram via Instasharp. My app worked good even 2 weeks after being approved by Instagram. But suddenly stopped working and by checking line by line of codes using instasharp I found that after receiving Code from instagram when i want te get Access-Code by running code below I get null Value from instagram.
...
var config = InstagramInfo.Info.Config;
var auth = new OAuth(config);
var instagramauthInfo = await auth.RequestToken(code);
....
aut.RequestToken(code) returns null. Even When i use OAuth.ResponseType.Token instad of code , It completely returns null from instagram after authenticating and redirecting to RedirectUrl. Solutions I have tried but didnt help me are :
- Using latest version of Instasharp
- Using Https ( in a part of Instagram location it says for some situation if you dont use https instagram may retrn Null for access-token)
- in a topic someone said he set the CONTENT TYPE , bu i have no idea where to set content-type in instasharp
Pleas help me to solve this problem.:(