The text of this article is not in this database — only its details are. Read it on the old site: How to Authenticate and Get Data Using Instagram API
18 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.

Imam NPosted Sep 16, 2018, 11:20 PM
Hi. How to get a Videos in this Code?
Alejandro VirgiliPosted May 10, 2017, 1:38 PM
Hi Raj could you do an example in mvc plz.. I'm having problem in the redirect it should go back to controller so i can send in to a view.
Yogendra GuptaPosted Mar 7, 2017, 5:01 AM
Hello, What is code parameter? This is not explain on the instagram documentation ?? can you please guide us for data parameter.
Xavier .Posted Jan 4, 2017, 11:40 AM
What is the code parameter ?This is not explain on the instagram documentation.What is ? How can i provide it ? When i give a value to this parameter the server response is { "code": 400, "error_message": "Matching code was not found or was already used.", "error_type": "OAuthException" } Can somebody help ?
Max BadijPosted Nov 29, 2016, 4:20 PM
I have an error {"code": 400, "error_type": "OAuthException", "error_message": "Redirect URI does not match registered redirect URI"}
Tay ErnPosted Jan 13, 2016, 10:35 PM
Page.ClientScript.RegisterStartupScript(this.GetType(), "GetToken", "<script>var instagramaccessid=\"" + @"" + id + "" + "\"; var instagramaccesstoken=\"" + @"" + accessToken + "" + "\";</script>"); I'm getting error at this line: An object reference is required for the non-static field, method, or property 'System.Web.UI.Page.ClientScript.get'
Mr. AhsanPosted Dec 23, 2015, 4:39 AM
How can i make an auto liker C# app .. which auto like the specific posts ..
Lisss ForPosted Dec 10, 2015, 12:10 AM
watch out guys. One always takes risks when uploading thirdparty dlls
Lisss ForPosted Dec 10, 2015, 12:02 AM
no need using Newtonsoft.json namespace and waste time loading the dll. Easy to use built-in .net 4 System.Web.Script.Serialization namespace. It goes like this: // deserializing nested JSON string to object var serializer = new JavaScriptSerializer();dynamic jsResult = serializer.Deserialize<object>(response); string accessToken = jsResult["access_token"]; Dictionary<string, object> user = jsResult["user"]; object value = 0; user.TryGetValue("id",out value); string id = Convert.ToString(value); //This code register id and access token to get on client side. All code below this very line stays unchanged as it was supplied by Raj Kumar. Thank you for your posts
Shahzaib Idrees BaluchPosted Jul 17, 2015, 5:19 PM
// deserializing nested JSON string to object var jsResult = (JObject)JsonConvert.DeserializeObject(response); string accessToken = (string)jsResult["access_token"]; int id = (int)jsResult["user"]["id"]; Where Should i put this ???
Yuvraj BabrahPosted Feb 25, 2015, 3:08 AM
There's an easy C# API available as well on github (https://github.com/yuvrajb/InstaAPI) and codeplex (https://instaapi.codeplex.com/)
Monika JainPosted Jan 29, 2015, 12:02 AM
how to do above in VB?
Kuan Yee LeePosted Nov 27, 2014, 6:21 AM
thanks alot
Sunny SharmaPosted Sep 27, 2014, 4:36 AM
nice share Raj Sir!
Sandeep VemulaPosted Sep 24, 2014, 8:46 AM
good article
Vithal WadjePosted Sep 23, 2014, 1:14 PM
very useful
Mahesh ChandPosted Sep 23, 2014, 6:20 AM
Good one