Tuesday, 15 March 2011

asp.net - Post Image on Instagram with API using c# -


I am building a Asp.net C # application I want to post pictures uploaded by users directly to Instagram I am, but after a quick search I can not get API help me any function in any C # code

below is the code I access tokens

  private void How to post on instagram wall can get authentication () {String rest = string.Empt Y; GlobusInstagramLib.Authentication.ConfigurationIns config = new GlobusInstagramLib.Authentication.ConfigurationIns ( "https://instagram.com/oauth/authorize/", ConfigurationManager.AppSettings [ "consumerKey"], ConfigurationManager.AppSettings [ "consumerSecret"], ConfigurationManager.AppSettings ["Callback"], "https://api.instagram.com/oauth/access_token", "https://api.instagram.com/v1/", ""); OAuthInstagram _api = oAuthInstagram.GetInstance (config); Rest = _api.AuthGetUrl ("likes + comments + original + relationships"); Response.Redirect (rest); }  

// return URL call

  public ActionResult Instagram () {String code = (string) Request.QueryString [ "code"]; OAuthInstagram objInsta = New Ather Installer (); GlobusInstagramLib.Authentication.ConfigurationIns configi = new GlobusInstagramLib.Authentication.ConfigurationIns ( "https://api.instagram.com/oauth/authorize/", ConfigurationManager.AppSettings [ "consumerKey"], ConfigurationManager.AppSettings [ "consumerSecret"], ConfigurationManager Kappsettings [ "Colbakurl"], "Actiteepi://apiaikinstagramkcom/outh/akses_tokn", "Https://apiaikinstagramkcom/vl/", ""); OAuthInstagram _api = new oAuthInstagram (); _api = oAuthInstagram.GetInstance (configi); AccessToken Access = New AccessToken (); Access = _api.AuthGetAccessToken (code); String AccessToken = access.access_token; String id = access.user.id; ViewBag.accessToken = Access Token; Enter code here; ViewBag.Uid = id; See Return (); }  

How do I get an access token and profile ID code below? How to post an image? You can not upload photos in Instagram via API

From the API documentation of Instagram:

At this time, it is not possible to upload via the API.

  • Instagram is about to go about your life - we hope to encourage photos from within the app.
  • We want to fight spam & amp; Low Quality Photos Once we allow upload from other sources, it is difficult to control the control coming into the Instagram ecosystem. All this is being said, we are working on ways to ensure that users get a consistent and high quality experience on our platform.

No comments:

Post a Comment